How do you set security in applets?
using setSecurityManager() method. Read more »
using setSecurityManager() method. Read more »
init() method - Can be called when an applet is first loaded start() method - Can be called each time an applet is started. paint() method - Can be called when the... Read more »
When the applet class file is not in the same directory, codebase is used. Read more »
Using getParameters() method. Read more »
No, it is not the main method in which you define variables. Global variables is not possible because concept of encapsulation is eliminated here. Read more »
Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon... Read more »
When you expect your code will be accessed by different threads and these threads may change a particular data causing data corruption. Read more »
Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time. Read more »
Thread contains ready, running, waiting and dead states. Read more »
Thread class and Runnable interface can be used to create threads and using Runnable interface is the most advantageous method to create threads because we need... Read more »
wait (), notify () and notifyAll() methods can be used for inter-thread communication and these methods are in Object class. wait() : When a thread executes a call... Read more »
Multithreading is the mechanism in which more than one thread run independent of each other within the process. Read more »
Process is a program in execution whereas thread is a separate path of execution in a program. Read more »
Array is a set of related data type and static whereas vector is a growable array of objects and dynamic. Read more »
a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports... Read more »