What does list clear do?



What does list clear do?..

Answer / Vikas Kumar Jain

The clear() method in List interface removes all of the elements from this list, leaving it empty.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is quick sort example?

1 Answers  


Differentiate between compilers and interpreters.

1 Answers   Tech Mahindra,


What is bubble sort and quick sort?

1 Answers  


Is merge sort better than quick?

1 Answers  


What exactly is a thread?

1 Answers  


What is a Breadth First Search? Give a few of its applications.

1 Answers   Ciena,


What is the limit of arraylist?

1 Answers  


How does sort function work?

1 Answers  


What are the advantages of binary search over linear search?

1 Answers  


How can we reverse the order in the treemap?

1 Answers  


Explain the priority queue?

1 Answers  


How do you find the number of comparisons in bubble sort?

1 Answers  


Categories