190) How can a dead thread be restarted?
A dead thread cannot be restarted.
191) What happens if an exception is not caught?
An uncaught exception results in the uncaughtException() method of the thread's
ThreadGroup being invoked, which eventually results in the termination of the program in
which it is thrown.
192) What is a layout manager?
A layout manager is an object that is used to organize components in a container.
193) Which arithmetic operations can result in the
throwing of an ArithmeticException?
Integer / and % can result in the throwing of an ArithmeticException.
194) What are three ways in which a thread can enter the
waiting state?
A thread can enter the waiting state by invoking its sleep() method, by blocking on I/O, by
unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait()
method. It can also enter the waiting state by invoking its (deprecated) suspend() method.
Do'stlaringiz bilan baham: |