What is the difference between Component class and Container class in Java?



The class Component is the abstract base class for the non-menu user-interface controls of AWT. A component represents an object with graphical representation. The class Container is the superclass for the containers of AWT. The container object can contain other AWT components.

Updated on: 2019-07-30T22:30:20+05:30

4K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements