![]() Related Questions A thread enters the waiting state when it blocks on I/O. Latest Answer : When a thread blocks on I/O, it enters to BLOCKED state. A thread enters WAITING state, while a thread calls wait(), and it will come back to READY state, while other threads call notify() or notifyAll(). The wait-notify model is called monitor pattern. ... If a checked exception may be thrown within the body of a method, the method musteither catch the exception or declare it in its throws clause. Latest Answer : this rule is actually for handling the exceptions:that is there are two ways by ehich u can handle the exception :1:either you use the try catch statement and enclose the appropriate code in the try catch block,this is called as the catch or the HANDLE ... The finally clause is used to provide the capability to execute code no matter whether ornot an exception is thrown or caught. Latest Answer : In try,catch clauses either try clause(If exception is not happend) or catch clause(If exception occures) is exicuted.If we want to exicute a block of statements doesn't depend on exception then we put those block of statements in finally ... A catch clause can catch any exception that may be assigned to the Throwable type. Thisincludes the Error and Exception types. The finally clause of the try-catch-finally statement is always executed unless the threadof execution terminates or an exception occurs within the execution of the finally clause. What happens if a try-catch-finally statement does not have a catch clause to handlean exception that is thrown within the body of the try statement The exception propagates up to the next higher level try-catch statement (if any) orresults in the program's termination. When an exception is thrown within the body of a try statement, the catch clauses of thetry statement are examined in the order in which they appear. The first catch clause that iscapable of handling the Latest Answer : If you are trying to catch the specific exception , write that catch clause prior to the other / general clauses.Otherwise the compilation error "The Exception already been caught" will occur.Try this code:try {// some code}catch(Exception ... Latest Answer : try&catch blocks are to get the error description.wothout try block there is no catch.finally contains compalsary statements,to disconnect the database statement.wothout try there is no finally.By RAJESH ... Latest Answer : final is used for declaring a variable as a constant, final class can't be inherited, final methods cannot be overloaded but overridden finally statement should execute not depending upon an exception is catch or thrown finalize ... Latest Answer : stubs: Marshall arguments transmitting to server Skeletons:unmarshall arguments pass to servant servant recieve the call for skeleton as local call ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||