Home >Java >javaTutorial >what is java container
The java container is a program written in java. Containers can manage the life cycle of objects and the dependencies between objects. Java container classes include List, ArrayList, Vector, etc.
Container is a program written in Java. Originally, you had to write your own program to manage object relationships. Now the container will automatically do it for you. Let’s learn more about it with the editor below.
(Recommended tutorial: java course)
The Java container is a program written in Java.
Containers can manage the life cycle of objects and the dependencies between objects.
You can use a configuration file (usually XML) to define the name of the object, how to generate it (Prototype method or Singleton method), and which object must be set to become a certain object after it is generated. Properties, etc., after starting the container, all objects can be accessed directly without writing any line of program code to generate objects or establish dependencies between objects.
Java container classes include List, ArrayList, Vector and map, HashTable, HashMap, and Hashset.
Related recommendations: java introductory tutorial
The above is the detailed content of what is java container. For more information, please follow other related articles on the PHP Chinese website!