![]() |
| 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 Vector class provides the capability to implement a growable array of objects Latest Answer : A vector implements dynamic array, which can grow and shrink dynamically.It is similar to Arraylist with a difference that vector can be synchronized. it also contain some legacy methods. ... 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. ... The readLine() method returns null when it has reached the end of a file. Latest Answer : readLine() method of BufferReader class returns String and when it reaches the end of file file it returns null. ... 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 Java source code file takes the name of a public class or interface that is defined withinthe file. A source code file may contain at most one public class or interface. If a publicclass or interface The read() method returns -1 when it has reached the end of a file. Latest Answer : It returns null value if its a char type and -1 if its a byte type. ... It is referred to as the modulo or remainder operator. It returns the remainder of dividingthe first operand by the second operand. Latest Answer : 1.For integer remainder operation, where only integer operands are involved, evaluation of the expression (x % y) always satisfies the following relation:x == (x / y) * y + (x % y)2.The floating-point ... The abs() method is used to calculate absolute values.
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||