Explain methods specific to list interface?



Explain methods specific to list interface?..

Answer / Amit Kumar Sahani

The List interface in Java provides various methods for manipulating lists, such as add(), remove(), contains(), get(), set(), indexOf(), and size(). It also offers methods for sorting (sort()), reversing (reverse()), and sub-list creation (subList()).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a default method?

1 Answers  


How can you set an applet’s height and width as a percentage?

1 Answers  


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


What is array sorting in java?

1 Answers  


What is 'finally' method in Exceptions?

4 Answers  


If circular link of two objects, then will it be garbage collected ?

3 Answers   TCS,


What is the definition of tree ?

1 Answers   Amazon,


Why local variables are stored in stack?

1 Answers  


Tell me the Importent classes in net package?

1 Answers  


Can a class be declared as static?

1 Answers  


Define inheritance?

1 Answers  


How to Create A Wapper Class in core Java and Why are Use in java?

2 Answers   Amdocs,


Categories