![]() Related Questions Latest Answer : An exception in java is a signal that indicates the occurence of some unexpected condition during execution.Regards,Chandana.R ... Latest Answer : Checked Exceptions must be explicitly handled by the programmer by using try/catch& finally blocks (or) it must be propogated to its callable class.Unchecked Exceptions may or may not be handled by programmer. The JVM provides the DefaultHandler to ... Latest Answer : Exception is nothing but the Error which we can except.Error is nothing But whcih we cant expect while executing program ... Latest Answer : We cannot avoid a runtime exception it will be handled by the JVM's default exception handler and print's the particular stacktrace. ... Latest Answer : throw is used to explicitly thorw some exception throws is used to tell the compiler the this method might through mentioned type of exception. ... Latest Answer : You can create your own exception by extending the java.io.Exception.Throw the that exception using throw like this :public void method() throws userDefinedException {try {}catch(exception e) { throw new userDefunedExcpetion();} ... Latest Answer : Checked exceptions are those exceptions which the programmer should handle otherwise the compiler will give an error.In case of Unchecked exceptions, even though if we don't handle compiler wont give any error. ... Latest Answer : If a method is not Handling a checked exception and wants the exception to be propagated to the caller of the method then that exception is declared in the Throws clause of its method prototype.Regards,Chandana. ... Latest Answer : exception object can be caught only once after it was caught i think it will be eligible for garbage collection. Not that it will be immediately destroyed but it will be destroyed soon if we are not using that object to detect what kind of exception it ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||