Home > Java > javaTutorial > body text

what is java container

little bottle
Release: 2020-10-13 09:46:07
Original
14210 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template