Here you can find Java Collections Interview Questions and Answers.
In this Java Collections Interview Questions and Answers section you can learn and practice Java Collections Interview Questions and Answers to improve your skills in order to face technical inerview by IT companies. By Practicing these interview questions, you can easily crack any Java Collections interview.
AllIndiaExams provides you lots Java Collections Interview Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Java Collections Interview Questions and Answers as PDF files and eBooks.
You no need to worry, we have given lots of Java Collections Interview Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Java Collections technical interview.
What are limitations of object Arrays?
The main limitations of Object arrays are 1. These are fixed in size ie once we created an array object there is no chance of increasing or decreasing size based on our requirement. 2. Hence If we don’t know size in advance , arrays are not recommended to use 3. Arrays can hold only homogeneous elements. 4. There is no underlying data structure for arrays and hence no readymade method support for arrays. 5. Hence for every requirement programmer has to code explicitly 6. To over come these problems collections are recommended to use
What is Collection API ?
It defines set of classes and interfaces which can be used for representing a group of objects as single entity
What is Collection framework?
It defines set of classes and inter faces which can be used for representing a group of objects as single entity
What is difference between Collections and Collection?
Collection is an interface which can be used for representing a group of individual objects as single entity and it acts as root interface of collection frame work. Collections is an utility class to define several utility methods for Collection implemented class objects.
Explain about Collection interface?
* This interface can be used to represent a group of objects as a single entity. * It acts as root interface for entire collection framework. * It defines the most commonly used methods which can be applicable for any collection implemented class object
Explain about List interface?
List interface is a child interface of Collection interface. This can be used to represent group of individual objects in as a single entity where Duplicates are allowed Insertion order is preserved
Explain about Set interface?
Set is a child interface of Collection interface. it can be used to represent a group of individual objects as a single entity where Duplicate objects are not allowed. Insertion order is not preserved
Explain about SortedSet interface?
it is child interface of Set interface. it can be used to represent a group of individual objects in to a single entity where All the objects are arranged in some sorting order (Can be natural sorting order or customizede). Duplicates are not allowed.
Explain about NavigableSet ?
It is child interface of SortedSet and provides several utility methods for navigation purposes It doesn’t allows duplicates Insertion order is preserved It is introduced in 1.6 version
Explain about Queue interface?
If we want to represent a group of individual objects prior to processing, then we should go for Queue interface. It is child interface of Collection interface. It has introduced in 1.5 version.