answersLogoWhite

0

What is Java Container Class?

Updated: 10/14/2022
User Avatar

Wiki User

15y ago

Best Answer

A class that is used to contain other java objects. They contain methods for adding and removing objects, as well as ways to iterate through them. They tend to differ mostly by how the objects are referenced (by key or no), by how fast their various methods execute, and by how much memory the container uses. Examples include: java.util.Vector java.util.Hashtable java.util.HashSet

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Java Container Class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why servlet has no constructor?

Because it is not a regular Java Class that is executed by a JVM. It is a special Java class that is executed by the Web Container which initializes and loads the servlet and the service methods get executed everytime it receives a request.


What is the difference between container and panel?

In Java, a Container is an AWT superclass which simply describes any Component class that can contain other Component objects. A Panel is a specific type of Container.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


Which component class is also a container in JAVA?

Well, the Container extends Component, so ALL containers in Java are components. This includes classes like Panel, ScrollPane, Window, and JComponent. Plus all the various generations of subclasses of each of those containers.


The actions in a java class are called?

The actions in a java class are called methods.


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).


How do you call main class with in main class in java?

We can't call a class. We always call a method in java.


Why the container is an abstract class in java?

A container is a generic term for an object that can contain other objects. It is not a type of object you can construct, and so therefore it is abstract. Specific instances of containers (such as Windows, Frames, and Panels) all share similar functionality, and so they all inherit from the container class so as to reduce the amount of code that had to be written, and allow each container to accept other containers and components without having to code for each specific container and component directly.


What class begins java class hierarchy?

Class


The top most class in java?

All classes in java must inherit from the Object class


What is the way to get rid of Java lang no class deffound error?

To get rid of the Java lang no class deffound error, one must add the class or .jar file which contains this class into the Java classpath. When a Java class is run from the command line, one must add a dot (.)