DEVFYI - Developer Resource - FYI

What is the difference between Swing and AWT components?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

134. What is the difference between Swing and AWT components?

AWT components are heavy-weight, whereas Swing components are lightweight. Heavy weight components depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Unix platform, it maps to a real Motif button.

(Continued on next question...)

Other Interview Questions