Question: what are the main differences between java awt and swing?
Answer: In brief, AWT and Swing are two toolkits to build rich Graphical User Interfaces (GUI). The main difference between AWT and Swing in Java is that AWT is Java's original platform dependent windowing, graphics and user interface widget toolkit while Swing is a GUI widget toolkit for Java that is an extension of AWT.