List interface?

Answer Posted / ravichandra

list inteface can have three types are 1.linkedlist
2.arraylist 3.vector

1.arraylist:It is dynamically growing array that stores
objects.It is not synchronized.
ex:-
ArrayList arl = new ArrayList();

2.Vector:-It is dynamically growing array that stores
objects.It is synchronized.

EX:-
Vector v= new Vector();

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between hashmap and hashtable? What is an interface?

774


Can we have static methods in an interface?

780


What is variable declaration and definition?

734


What is mean by exception?

744


how are methods defined?

778


How many bits is a char?

722


Where is the find and replace?

740


Can we create an object of private class?

732


What is methods and methodology?

770


What is null statement?

758


Explain the difference between private, public, package and protected in java?

790


Define the term string pool?

779


Can an interface have a class?

749


What's the difference between comparison done by equals method and == operator?

730


what is the constructor and how many types of constructors are used in java?

741