Multiple choice technology programming languages

Difference between Swing and AWT?

  1. AWT are light-weight componenets. Swings are heavy-weight components.

  2. AWT is platform independent. SWING is platform dependent.

  3. AWT are heavy-weight componenets. Swings are light-weight components.

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

AWT components are heavyweight because they map directly to the host platform's peer widgets, making AWT platform-dependent. Swing components are lightweight because they are written entirely in Java and drawn independently of platform-specific peers, making them platform-independent.