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 are the important features of Java 10 release?

549


In a class implementing an interface, can we change the value of any variable defined in the interface?

585


What is the difference between notify and notifyall method?

648


Can we convert stringbuilder to string in java?

586


Difference between nested and inner classes ?

638






What is application system?

531


What is java util?

568


Is ++ operator is thread safe in java?

555


What is a concrete classes? Is Java object class is concrete class?

550


What is thread start?

551


Write a program to reverse a number in java?

591


What do you mean by default constructor in java?

609


How are variables stored?

561


What are keywords and reserved words in java?

596


FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?

2681