176. What is the purpose of the wait(), notify(), and notifyAll() methods?
Answer: The wait(),notify(), and notifyAll() methods are used to provide an
efficient way for threads to communicate each other.
177. What are the high-level thread states?
Answer: The high-level thread states are ready, running, waiting, and dead.
178. What is the Collections API?
Answer: The Collections API is a set of classes and interfaces that support
operations on collections of objects.
179. What is the List interface?
Answer: The List interface provides support for ordered collections of objects.
180. How does Java handle integer overflows and underflows?
Answer: It uses those low order bytes of the result that can fit into the size of
the type allowed by the operation.
Wednesday, May 7, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment