Thursday, June 24, 2010

JAVA UTILS

QUESTION: What is the Collections API?
ANSWER: The Collections API is a set of classes and interfaces that support operations on collections of objects

QUESTION: What is the List interface?
ANSWER: The List interface provides support for ordered collections of objects.

QUESTION: What is the Vector class?
ANSWER: The Vector class provides the capability to implement a growable array of objects

QUESTION: What is an Iterator interface?
ANSWER: The Iterator interface is used to step through the elements of a Collection

QUESTION: Which java.util classes and interfaces support event handling?
ANSWER: The EventObject class and the EventListener interface support event processing

QUESTION: What is the GregorianCalendar class?
ANSWER: The GregorianCalendar provides support for traditional Western calendars

QUESTION: What is the Locale class?
ANSWER: The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region

QUESTION: What is the SimpleTimeZone class?
ANSWER: The SimpleTimeZone class provides support for a Gregorian calendar

QUESTION: What is the Map interface?
ANSWER: The Map interface replaces the JDK 1.1 Dictionary class and is used associate keys with values

QUESTION: What is the highest-level event class of the event-delegation model?
ANSWER: The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy

QUESTION: What is the Collection interface?
ANSWER: The Collection interface provides support for the implementation of a mathematical bag - an unordered collection of objects that may contain duplicates

QUESTION: What is the Set interface?
ANSWER: The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements

QUESTION: What is the purpose of the enableEvents() method?
ANSWER: The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.

QUESTION: What is the ResourceBundle class?
ANSWER: The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run.