How does remove work in java?



How does remove work in java?..

Answer / Jitendra Kumar Yadav

The `remove()` method in Java removes the first occurrence of a specified element from the List. If you want to remove all occurrences, you can use the `removeAll()` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you control extraneous variables?

1 Answers  


I want to persist data of objects for later use. What’s the best approach to do so?

1 Answers  


What is meant by Encapsulation? Can you write a class to explain encapsulation?

8 Answers   Ness Technologies,


Is double bigger than float?

1 Answers  


Difference between static binding and dynamic binding?

1 Answers  


If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


What is the difference between Grid and Gridbaglayout?

1 Answers  


What is the use of math abs in java?

1 Answers  


waht happens when a return type ,even void is specified for a constructor?

11 Answers  


Is call by reference possible in java?

1 Answers  


Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?

1 Answers  


What about method local inner classes or local inner classes in java?

1 Answers  


Categories