MCQ 1 Methods can be overloaded with a difference only in the type of the return value

Correct Answer Choice B 0
See Answer

MCQ 2 Which of the following statements are valid array declaration?

i) int number( );
ii) float average[ ];
iii) double[ ]marks;
iv) counter int[ ];

Correct Answer Choice B ii and iii
See Answer

MCQ 3 Which one of the following languages is pure object oriented language?

Correct Answer Choice A Java
See Answer

MCQ 4 Major objective of object oriented approach is to

Correct Answer Choice D All of these
See Answer


MCQ 5 Java

Correct Answer Choice D All of these
See Answer

MCQ 6 The loop keyword of java is

Correct Answer Choice B While
See Answer

MCQ 7 Which of the following methods can be used to remove a component from the display?

Correct Answer Choice D hide()
See Answer

MCQ 8 The concept of multiple inheritance is implemented in Java by

Correct Answer Choice D both B and C
See Answer


MCQ 9 JSP embeds in ____________in ___________.

Correct Answer Choice D Java, HTML
See Answer

MCQ 10 In order to run JSP ______________ is required.

Correct Answer Choice C Java Web Server
See Answer

MCQ 11 Which of the following is not the java primitive type

Correct Answer Choice D Long double
See Answer

MCQ 12 Which component is responsible to optimize bytecode to machine code?

Correct Answer Choice C JIT
See Answer


MCQ 13 What will be the output of the following code?

byte x=64, y; y= (byte) (x<<2); System.out.println(y);

Correct Answer Choice A 0
See Answer

MCQ 14 Which of the following control expressions are valid for an if statement?

Correct Answer Choice B A Boolean expression
See Answer

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

Correct Answer Choice D ii, iii and v only
See Answer

MCQ 16 Which of the following statement is false?

Correct Answer Choice B The yield() method should be enclosed in try ……… catch block.
See Answer


MCQ 17 Abbreviate the term OGNL?

Correct Answer Choice B Object- Graph Navigation Language
See Answer

MCQ 18 Java does not use

Correct Answer Choice D All of these
See Answer

MCQ 19 The state of left cycle of a thread is

Correct Answer Choice D All of these
See Answer

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 Constructor
See Answer


MCQ 21 Which interfaces provide methods for batch processing in JDBC?

Correct Answer Choice C All the above
See Answer

MCQ 22 ______________ is a special member function.

Correct Answer Choice D constructor
See Answer

MCQ 23 The class at the top of exception class hierarchy is _________________.

Correct Answer Choice B Throwable
See Answer

MCQ 24 In a java program, package declaration ____________________ import statements.

Correct Answer Choice A must precede
See Answer


MCQ 25 ________________ package is used by compiler itself. So it does not need to be imported for use.

Correct Answer Choice D java.lang
See Answer

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories