Which collection object is faster to retrieving the data and
inserting the data into it.
Answers were Sorted based on User's Feedback
Answer / nav dev
ArrayList is faster to retrieving
Set is faster to inserting
Is This Answer Correct ? | 21 Yes | 1 No |
Answer / lavanya
LinkedLisr is facter in inserting and retrieving from any
position on the list.
Is This Answer Correct ? | 11 Yes | 3 No |
Can we force garbage collector to run ?
What is the syntax and characteristics of a lambda expression?
Are floats faster than doubles?
What is the difference between object oriented programming language and object based programming language?
How are this and super used?
What is the use of parse function in java?
how to call a method in different package?
how we can make a read-only class in java?
public class Base { public void myMethod(int a,intb) {} } // Uses myMethod and then hides it. public class DerivedOne extends Base { private void myMethod(int a,int b); } will this compile or not .yes or no. why
Does java allow default arguments?
How does enum work in java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }