Java GUI Framework Question:

Download Job Interview Questions and Answers PDF

What are differences between Swing and AWT?

Java GUI Framework Interview Question
Java GUI Framework Interview Question

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 Interview Questions And Answers PDF

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?