MCQ 1 Methods can be overloaded with a difference only in the type of the return value
MCQ 2 Which of the following statements are valid array declaration?
i) int number( );
ii) float average[ ];
iii) double[ ]marks;
iv) counter int[ ];
MCQ 3 Which one of the following languages is pure object oriented language?
MCQ 4 Major objective of object oriented approach is to
MCQ 5 Java
MCQ 6 The loop keyword of java is
MCQ 7 Which of the following methods can be used to remove a component from the display?
MCQ 8 The concept of multiple inheritance is implemented in Java by
MCQ 9 JSP embeds in ____________in ___________.
MCQ 10 In order to run JSP ______________ is required.
MCQ 11 Which of the following is not the java primitive type
MCQ 12 Which component is responsible to optimize bytecode to machine code?
MCQ 13 What will be the output of the following code?
byte x=64, y; y= (byte) (x<<2); System.out.println(y);
MCQ 14 Which of the following control expressions are valid for an if statement?
MCQ 15 Which of the following keywords are used to control access to a class member?
i) default
ii) abstract
iii) protected
iv) interface
v) public
MCQ 16 Which of the following statement is false?
MCQ 17 Abbreviate the term OGNL?
MCQ 18 Java does not use
MCQ 19 The state of left cycle of a thread is
MCQ 20 The following program is an example for?
class Student{ int id; String name; void display(){ System.out.println(id+" "+name); } public static void main(String args[]){ Student s1=new Student(); Student s2=new Student(); s1.display(); s2.display(); } }
Correct Answer Choice B Default ConstructorSee Answer
MCQ 21 Which interfaces provide methods for batch processing in JDBC?
MCQ 22 ______________ is a special member function.
MCQ 23 The class at the top of exception class hierarchy is _________________.
MCQ 24 In a java program, package declaration ____________________ import statements.
MCQ 25 ________________ package is used by compiler itself. So it does not need to be imported for use.