SCJP Certification

Sun Certified Java Programmer Certification exam essentials

December 4th, 2009

Which of the following operations are allowed for collection framework?

Java Questions, by Daisy Williams.

A: Adding objects to a collection
B: Iterating through a collection
C: Finding out if an object is in a collection
D: Retrieving an object from a collection

All answer options are correct because:

The Collections Framework in Java is a hierarchy of interfaces and classes that provides a technology for managing a group of objects. It is used to provide a central and unified theme for managing a group of objects. The Java Collections Framework is designed to meet the following goals:

  • To offer high performance in terms of efficiency.
  • To allow different types of collections to work in a similar way and with a high degree of interoperability.
  • To ensure collections are flexible and can be easily extended.

Following are the basic types of operations allowed in a collection:

  • Adding objects to a collection
  • Removing objects from a collection.
  • Retrieving an object from a collection.
  • Finding out if an object is in a collection.
  • Iterating through a collection.
Share

Back Top

Responses to “Which of the following operations are allowed for collection framework?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*