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

Java 8Object Oriented ProgrammingProgramming

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.

Published on 05-Feb-2018 20:32:32