A container is responsible for laying out(that is positioning) any components that it contains; it does this through the use of various lay out managers.
container is a subclass of component.It has additional methods that allow other component objects to be nested within it!Other container objects can b stored inside of a container.