Log In Register

Units


Collection Framework Overview - Questions and Answers

 

Practice these Collection Framework Overview under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Collection Framework Overview for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Collection Framework Overview of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Collection Framework Overview.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Collection Framework Overview under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Collection Framework Overview topic of Java Programming:

 

1. Which of these methods deletes all the elements from invoking collection?

Answer: Option A

Explanation:
clear() method removes all the elements from invoking collection.

2. What is Collection in Java?

Answer: Option A

Explanation:
A collection is a group of objects, it is similar to String Template Library (STL) of C++ programming language.

3. Which of these classes is not part of Java’s collection framework?

Answer: Option D

Explanation:
Queue is not a part of collection framework.

4. Which of these packages contain all the collection classes?

Answer: Option B

Explanation:

5. Which of these interface is not a part of Java’s collection framework?

Answer: Option D

Explanation:
SortedList is not a part of collection framework.