Java FDP
Java FDP
S.Ganesh Babu
Basic Java
Exception
Thread
Serialization
AWT
Applet
Swing
Collection
Advance Java
RMI
CORBA
Java Media Framework
JMS
Java Introduction
Class
Object
Java Virtual Machine
Constructor
OOP Concepts
Eclipse IDE
Exception
Introduction
Try Catch
Multiple Try Catch
Try Catch Finally
throws
throw - User Defined Exceptions
Exception
Introduction
Try Catch
Multiple Try Catch
Try Catch Finally
throws
throw - User Defined Exceptions
Exception throws
public class ExceptionSample {
public static void main(String args[]) throws Exception
{
}
}
Thread
Introduction
Multithreading
Implementing Runnable Interface
Extending Thread Class
Suspend Resume
wait notify - notifyAll
Thread Control
Suspend
Resume
Wait
Notify
Notify All
Serialization
Introduction
Object Serialization
Demo
Serialization - Program
class MyClass implements Serializable {
String s;
int i;
double d;
public MyClass(String s, int i, double d) {
this.s = s;
this.i = i;
this.d = d;
}
public String toString() {
return "s=" + s + "; i=" + i + "; d=" + d;
}
}
AWT
Introduction
GUI concepts
Containers
Layout Managers
Controls
Events
AWT
Frame
Flowlayout,BorderLayout,GridLayout
TextField
Button
CheckBox
Choice
List
TextArea
Label
Listeners ActionListener, WindowListener
etc
Applet
Introduction
LifeCycle
Init,start,stop,paint,destroy
Running Applet Programs
Appletviewer
Applet - Program
import
import
java.applet.*;
java.awt.*;
Swing
Introduction
Difference Between AWT & Applet
Heavy Weight Light Weight
Content Pane
UIManager
Swing Components
Java Collection
Introduction
Lists
store objects in a specific order
Sets
Reject duplicates of any objects already in the collection
Maps
store objects in association with a key, which is later used to
look up and retrieve the object (note that if an item with a
duplicate key is put into a map, the new item will replace the
old item)
MAP
SORTED MAP
LIST
ArrayList,
Vector
SET
Hash Set,
TreeSet
TreeMap,Hash
Map,HashTable
}
}
Advance Java
RMI
CORBA
Java Media Framework
JMS
Introduction
Server Program
Client Program
Interface
Rmic compiler
rmiregistry
executing RMI Programs
java.rmi.Naming;
java.rmi.RemoteException;
java.rmi.server.UnicastRemoteObject;
RMI Interface
import java.rmi.Remote;
import java.rmi.RemoteException;
interface AddServerInterface extends Remote
{
double add(double d1,double d2)throws
RemoteException;
}
CORBA
Introduction
Architecture
CORBA - Demo
Introduction
Demo
JMF - Program
public class MediaPanel extends JPanel
{
public MediaPanel( URL mediaURL )
{
setLayout( new BorderLayout() ); // use a BorderLayout
// Use lightweight components for Swing compatibility
Manager.setHint
Manager.setHint(( Manager.LIGHTWEIGHT_RENDERER
Manager.LIGHTWEIGHT_RENDERER,, true );
try
{
// create a player to play the media specified in the URL
Player mediaPlayer = Manager.createRealizedPlayer
Manager.createRealizedPlayer(( mediaURL );
// get the components for the video and the playback controls
Component video = mediaPlayer.getVisualComponent();
Component controls = mediaPlayer.getControlPanelComponent();
if ( video != null )
add( video, BorderLayout.CENTER
BorderLayout.CENTER ); // add video component
if ( controls != null )
add( controls, BorderLayout.NORTH
BorderLayout.NORTH ); // add controls
System.err
.println( "Error reading from the source" );
System.err.println(
} // end catch
} // end MediaPanel constructor
} // end class MediaPanel
JMF - Program
Introduction
point to-point JMS
Queue JMS
Thank You