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 06-Feb-2018 01:02:32