Java GUI Framework Question:
Download Questions PDF

Why Swing components are called lightweight component?

Java GUI Framework Interview Question
Java GUI Framework Interview Question

Answer:

Another popular java swing interview question, I guess the oldest that is generally comes as followup of earlier question based on your answer provided. AWT components are associated with native screen resource and called heavyweight component while Swing components is uses the screen resource of an ancestor instead of having there own and that's why called lightweight or lighter component.

Download Java GUI Framework Interview Questions And Answers PDF

Previous QuestionNext Question
What are differences between Swing and AWT?What is difference between invokeAndWait and invokeLater?