associate keys with values.
Question What is the highest-level event class of the eventdelegation model?
(Java util)
Answer The java.util.EventObject class is the highest-level class in
the eventdelegation class hierarchy.
Question What is the Collection interface? (Java util)
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? (Java util)
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? (Java util)
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 eventdispatch methods.
Question What is the ResourceBundle class? (Java util)
Answer The
ResourceBundle class is used to store localespecific
resources that can be loaded
by a program to tailor the program's appearance to the particular locale in which
it is being run.
Question What is the difference between yielding and sleeping? (Threads)
Answer When a task invokes its yield() method, it returns to the ready state.
When a task invokes its sleep() method, it returns to the waiting state.
Do'stlaringiz bilan baham: