MCQ 1 What is it called if an object has its own lifecycle and there is no owner?
MCQ 2 How many times does the following code segment execute
int x=1, y=10, z=1; do{y–; x++; y-=2; y=z; z++} while (y>1 && z<10);
MCQ 3 Which component is responsible to run java program?
MCQ 4 Which statement is true about java?
MCQ 5 The third type of comment is used by a tool called __________________ for automatic generation of documentation.
MCQ 6 A package is a collection of
MCQ 7 MS-SQL stores data in a _____________ file format.
MCQ 8 In Java servlet method init( ) is called _____________ times.
MCQ 9 The command javac is used to
MCQ 10 Which method will a web browser call on a new applet?
MCQ 11 What is the extension of compiled java classes?
MCQ 12 Inner classes are
MCQ 13 In the second type the information written in java after // is ignored by the ______________.
MCQ 14 Ingres is a __________________.
MCQ 15 By using ________________ you can force immediate termination of a loop, by passing the conditional expression and any remaining code in the body of the loop.
MCQ 16 The class string belongs to ________________ package.
MCQ 17 State true or false for the following statements in Java.
MCQ 18 In java, string is a ___________________.
MCQ 19 Method overloading is one of the way that Java supports ______________.
MCQ 20 Which of the following statements correctly describes an interface?
MCQ 21 What is the error in the following code?
class Test { abstract void display( ); }
MCQ 22 A method name myMethod( ) that needs two integer arguments is declared as
MCQ 23 What is byte code in the context of Java?
MCQ 24 Which of the following statements about abstract methods/classes in Java is true?
MCQ 25 We would like to make a member of a class visible in all subclasses regardless of what package they are in. Which one of the following keywords would archive this?