Can applet in different page communicate with each other?
Yes, An applet can communicate with another applet on different. Since an AppletContext will be created for a single page. If it is in multiple pages, different applet context will be there for different applets.
But even if the applets are on different pages, they run under the same JVM, so we can create an class similar to AppletContext say this class AppletRegistry, which holds references to all the applets running in the JVM, and this class can be use to hand over the reference to whoever needs it for communication.
This registry should maintain a static hashtable that should keep the map of all the applet objects.Reply
Explain I/O Filter.
The filter driver determines the total bandwidth of the disk. I/O filters generally used for reading from one stream and writing another stream.Reply
Explain. Two types of multi-tasking.
Two types of multi-tasking :
* Process based multi-tasking.
* Thread based multi-tasking.
In Process based multitaskin, more than one processes run concurrently. Whereas In Thread based multitasking multiple threads executes concurrently. A single process may contain several executing threads sharing the same address space.Reply
What is Checked & Unchecked exception?
Both types of exceptions are drived from the class Exception. But Unchecked exception are RunTimeException, which do not to be handled or declared. Whereas Checked Exceptions must be handled by try/catch block or must be declared in the method signature.Reply
Can we declare variables inside a method as Final Variables?
Yes! we can declare variables inside a method as final variables.Reply
What is Default modifier in Interface?
Default modifier in Interface is public access modifier.Reply
What is Wrapper class. Is String a Wrapper Class?
Wrapper classes are used to "wrap" the primitives
data types into objects so that they can be
included in the activities which are reseved for
Yes! String class is a wrapper class, it wraps
the string literals to an object.
What is difference between String & StringBuffer?
String class provides the immutable character
sequence whereas StringBuffer class objects are
mutable characters sequence. The StringBuffer is
faster than String when performing simple
String s=new String("Hello");
The String object s is still pointing to "Hello"
instead of "HELLO". Here a new string "HELLO" is
created but did not assinged to any reference
StringBuffer sb=new StringBuffer("Hello");
The StringBuffer object sb is now pointing to the
This is the main difference that string object
are immutable and string buffer objects are
What is latest versions in JAVA related areas ?
As of December 2008, the latest version of Java is 1.6.0_11Reply
What is the exact difference in between Unicast and Multicast object ? Where we will use ?
Unicast object means there is one receiver. Use
multicast to allow one-to-many connections. The
example for multicast is the java eventhandling