Home  >  Article  >  Java  >  what is java container

what is java container

little bottle
little bottleOriginal
2019-05-21 16:57:2514159browse

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.

what is java container

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn