MCQ 1 What is it called if an object has its own lifecycle and there is no owner?

Correct Answer Choice D Association
See Answer

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);

Correct Answer Choice A 1
See Answer

MCQ 3 Which component is responsible to run java program?

Correct Answer Choice D JRE
See Answer

MCQ 4 Which statement is true about java?

Correct Answer Choice A Platform independent programming language
See Answer


MCQ 5 The third type of comment is used by a tool called __________________ for automatic generation of documentation.

Correct Answer Choice C Java doc
See Answer

MCQ 6 A package is a collection of

Correct Answer Choice D classes and interfaces
See Answer

MCQ 7 MS-SQL stores data in a _____________ file format.

Correct Answer Choice A .DAT
See Answer

MCQ 8 In Java servlet method init( ) is called _____________ times.

Correct Answer Choice A 1
See Answer


MCQ 9 The command javac is used to

Correct Answer Choice B compile a java program
See Answer

MCQ 10 Which method will a web browser call on a new applet?

Correct Answer Choice D init method
See Answer

MCQ 11 What is the extension of compiled java classes?

Correct Answer Choice A .class
See Answer

MCQ 12 Inner classes are

Correct Answer Choice B nested classes
See Answer


MCQ 13 In the second type the information written in java after // is ignored by the ______________.

Correct Answer Choice B Compiler
See Answer

MCQ 14 Ingres is a __________________.

Correct Answer Choice C Database
See Answer

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.

Correct Answer Choice A Break
See Answer

MCQ 16 The class string belongs to ________________ package.

Correct Answer Choice B java.lang
See Answer


MCQ 17 State true or false for the following statements in Java.

  1. Java beans slow down software development process.
  2. Java Servlets do not have built in multithreading feature.
  3. <

    Correct Answer Choice A 1 − False, 2 − False
    See Answer

MCQ 18 In java, string is a ___________________.

Correct Answer Choice B abstract data type
See Answer

MCQ 19 Method overloading is one of the way that Java supports ______________.

Correct Answer Choice D polymorphism
See Answer

MCQ 20 Which of the following statements correctly describes an interface?

Correct Answer Choice C It’s a type of abstract class
See Answer


MCQ 21 What is the error in the following code?

class Test { abstract void display( ); }

Correct Answer Choice C Test class should be declared as abstract
See Answer

MCQ 22 A method name myMethod( ) that needs two integer arguments is declared as

Correct Answer Choice B public void myMethod(int a, int b);
See Answer

MCQ 23 What is byte code in the context of Java?

Correct Answer Choice A The type of code generated by a Java compiler
See Answer

MCQ 24 Which of the following statements about abstract methods/classes in Java is true?

Correct Answer Choice A An abstract class cannot be instantiated.
See Answer


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?

Correct Answer Choice D Private Protected
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