11. What are the states associated in the thread?
Thread contains ready, running, waiting and dead states.
12. What is synchronization?
Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time.
13. What is deadlock?
When two threads are waiting each other and can’t precede the program is said to be deadlock.
14. What is an applet?
Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser
15. What is the lifecycle of an applet?
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 applet is minimized or maximized.
stop() method – Can be used when the browser moves off the applet’s page.
destroy() method – Can be called when the browser is finished with the applet.
Comments
Post a Comment