MCQ 1 Java does not define which type modifier?

Correct Answer Choice D All of these
See Answer

MCQ 2 If you are inserting any value in the wrong index as shown below, 1. int a[]=new int[5]; 2. a[10]=50; it would result in ______.

Correct Answer Choice A NullPointerException
See Answer

MCQ 3 The thread may be in

Correct Answer Choice D All of these
See Answer

MCQ 4 What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser?

Correct Answer Choice C paint()
See Answer


MCQ 5 Inheritance is a 

Correct Answer Choice D All of these
See Answer

MCQ 6 Which cookie it is valid for single session only and it is removed each time when the user closes the browser?

Correct Answer Choice B Non-persistent cookie
See Answer

MCQ 7 When a program class implements an interface, it must provide behavior for

Correct Answer Choice D all methods defined in that interface
See Answer

MCQ 8 What is the extension of java code files?

Correct Answer Choice B .java
See Answer


MCQ 9 Which of the following statement is/are true?

  • i) The name of a java program file must match the name of the class with the extension .java
  • ii) Two methods cannot have the same name in java
  • <

    Correct Answer Choice A i- only
    See Answer

MCQ 10 _____________ can appear only where in the body of a java method.

Correct Answer Choice B declaration
See Answer

MCQ 11 Object is a __________________ entity.

Correct Answer Choice B physical
See Answer

MCQ 12 Which method is used to change the name of a thread?

Correct Answer Choice B public void setName(String name)
See Answer


MCQ 13 Which one of the following web browsers uses just-in-time (JIT) complier?

Correct Answer Choice B Internet Explorer
See Answer

MCQ 14 Which configuration files are used in Struts?

Correct Answer Choice C All the above
See Answer

MCQ 15 For the method that does not return a value, the keyword used is

Correct Answer Choice B Void
See Answer

MCQ 16 The default priority is

Correct Answer Choice D 5
See Answer


MCQ 17 What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser?

Correct Answer Choice C paint()
See Answer

MCQ 18 Which method can set or change the text in a Label?

Correct Answer Choice A setText()
See Answer

MCQ 19 Which one of the following is a java keyword?

Correct Answer Choice C Public
See Answer

MCQ 20 Which of the following methods belong to the String class?

Correct Answer Choice D All of the above
See Answer


MCQ 21 Which of the following in NOT represent legal flow control statements?

Correct Answer Choice B break();
See Answer

MCQ 22 ______________ is the key to ________________.

Correct Answer Choice A Serialization, persistence
See Answer

MCQ 23 ?: is a

Correct Answer Choice A Conditional operator
See Answer

MCQ 24 Which validates the given string with the specified regular expression,it can be used in password, security key etc.?

Correct Answer Choice A Regex Validation
See Answer


MCQ 25 Abbreviate the term JMS?

Correct Answer Choice A Java Message Service
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