Java GUI Framework Question:

What are differences between Swing and AWT?

Tweet Share WhatsApp

Answer:

One of the classic java swing interview questions and mostly asked on phone interviews. There is couple of differences between swing and AWT:

1) AWT component are considered to be heavyweight while Swing component are lightweights
2) Swing has plug-gable look and feel.
3) AWT is platform depended same GUI will look different on different platform while Swing is developed in Java and is platform dependent.

Download Java GUI Framework PDF Read All 28 Java GUI Framework Questions
Previous QuestionNext Question
Does Swing is thread safe? What do you mean by swing is not thread-safe?Why Swing components are called lightweight component?