What is the use of collections in java? How it is
implemented in real time applications?

Answer Posted / srikanth reddy

they are used to store elements in java like arrays

ArrayList al=new ArrayList();
al.add("sri");
al.add(new Integer(99);

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are triggers in DB? Explain their types. How do they work?

890


What is the syntax and characteristics of a lambda expression?

824


Does substring create a new object?

780


What is quick sort in java?

807


Do loops java?

779


What is array length?

750


Why volatile is used in java?

780


What is byte value?

774


What is the technique adopted to create an immutable class?

799


What is return null in java?

733


Explain the difference between intermediate and terminal operations in java8?

828


What is prefix of a string?

818


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

758


What does s mean in regex?

798


What happens if we override only equals?

777