java Interview Questions & Answers (includes core java, threads, servlet , jsp , ejb, design pattern, java util)
Question: What is a compilation unit? Answer: A compilation unit is a Java source code file. Question: What restrictions are placed on method overriding? Answer:: Overridden methods must have the same name, argument list, and return type. The overriding method may not limit the access of the method it overrides. The overriding method may not throw any exceptions that may not be thrown by the overridden method. Question: How can a dead thread be restarted? Answer: A dead thread cannot be restarted. Question: What happens if an exception is not caught? Answer: 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. Question: Which arithmetic operations can result in the throwing of an Ar...