![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions 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 ... A package statement must appear as the first line in a source code file (excluding blanklines and comments). Latest Answer : package statement must appear as the first line in a source code file and one public class declaration. ... 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)· ... Yes, a for statement can loop indefinitely. For example, consider the following:for(;;) ; Latest Answer : The for loop will be working fine even without the initialization.Hence for(;;) will create a indefinite loop. ... The CheckboxMenuItem class extends the MenuItem class to support a menu item thatmay be checked or unchecked. 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 ... 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 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. ... Commas are used to separate multiple statements within the initialization and iterationparts of a for statement.
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||