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 ...
It must provide all of the methods in the interface and identify the interface in itsimplements clause.
Latest Answer : interface enhance the concepts of inheritence. by calling multiple interfaces to class we can also inherinting more than a class indirectly ...
A Canvas object provides access to a Graphics object via its paint() method.
A catch clause can catch any exception that may be assigned to the Throwable type. Thisincludes the Error and Exception types.
When a window is repainted by the AWT painting thread, it sets the clipping regions tothe area of the window that requires repainting.
An event-listener interface defines the methods that must be implemented by an eventhandler for a particular kind of event. An event adapter provides a default implementationof an event-listener interface.
The operating system's task scheduler allocates execution time to multiple tasks. Byquickly switching between executing tasks, it creates the impression that tasks executesequentially.
Latest Answer : Hyperthreading processors have more than one execution units but only one processor core, thats how multiple tasks are performed simultaneously ...
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.
When a task's interrupt() method is executed, the task enters the ready state. The nexttime the task enters the running state, an InterruptedException is thrown.