Java GUI Framework Question:

Why Swing components are called lightweight component?

Tweet Share WhatsApp

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 PDF Read All 28 Java GUI Framework Questions
Previous QuestionNext Question
What are differences between Swing and AWT?What is difference between invokeAndWait and invokeLater?