The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that havebeen shifted out.
Latest Answer : While dealing with (+)ve numbers there is no difference between >>> and >> operators.Both operators shift zeros into the upper bits of a number.The difference arises when dealing with (-)ve numbers.Since (-)ve numbers,(-)ve numbers have ...
When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state.
Latest Answer : yield method is mainly used to release the lock of resource and pull up in to steady state from wait pool. Sleep() will pull the thread to sleep for the given time. It will throws exception while trying to intrupt in b/w the sleep state ...
The EventObject class and the EventListener interface support event processing.
Latest Answer : Java.util.Event class ...
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
Latest Answer : 1. Pre-emptive Scheduling.Ways for a thread to leave running state -· It can cease to be ready to execute ( by calling a blocking i/o method)· ...
The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked.
The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy.
Most of the AWT-related events of the event-delegation model are defined in thejava.awt.event package. The AWTEvent class is defined in the java.awt package.
If an expression involving the Boolean & operator is evaluated, both operands areevaluated. Then the & operator is applied to the operand. When an expression involvingthe && operator is evaluated, the
Latest Answer : & -> for bitwise operation&&-> for logical comparison ...
A break statement results in the termination of the statement to which it applies (switch,for, do, or while). A continue statement is used to end the current loop iteration andreturn control to the loop
Latest Answer : The break keyword halts the execution of the current loop and forces control out of the loop. The continue is similar to break, except that instead of halting the execution of the loop, it starts the next iteration. ...
The event-delegation model has two advantages over the event-inheritance model. First,it enables event handling to be handled by objects other than the ones that generate the events (or their containers).