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 |
What is a default method?
How can you set an applet’s height and width as a percentage?
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.
What is array sorting in java?
What is 'finally' method in Exceptions?
If circular link of two objects, then will it be garbage collected ?
What is the definition of tree ?
Why local variables are stored in stack?
Tell me the Importent classes in net package?
Can a class be declared as static?
Define inheritance?
How to Create A Wapper Class in core Java and Why are Use in java?