Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined slice of time and then reenters the pool of ready tasks. Thescheduler then determines which task...
A static variable is associated with the class as a whole rather than with specific instancesof a class. Non-static variables take on unique values with each object instance.
An unreachable object may become reachable again. This can happen when the object'sfinalize() method isinvoked and the object performs an operation which causes it to become accessible toreachable objects.
During compilation, the values of each case of a switch statement must evaluate to avalue that can bepromoted to an int value.
The paint() method supports painting via a graphics object. The repaint() method is usedto cause paint() tobe invoked by the awt painting thread.
A public class may be accessed outside of its package. A non-public class may not beaccessed outside ofits package.
The finally clause of the try-catch-finally statement is always executed unless the threADOf executionterminates or an exception occurs within the execution of the finally clause.
A method's throws clause must declare any checked exceptions that are not caught withinthe body of themethod.
When a window is repainted by the awt painting thread, it sets the clipping regions tothe area of thewindow that requires repainting.