OOPS and Core Java Interview Question and Answers
37. | Why are the AWT components called the Heavy Weight Components? |
---|---|
For a same application program, AWT components occupy more memory space than swing components. Moreover, AWT components are implemented by platform-specific code, while the swing components are platform-independent. Therefore, AWT components are called 'Heavy Weight Components', while, Swing components, called Light Weight Components. | |
38. | What is called Synchronization with respect to multithreading? |
---|---|
|
|
39. | Describe a File class in Java.io. package? |
---|---|
|
|
40. | Distinguish between Applets and Servlets with respect to their functionality? |
---|---|
|
|