TOP 15 JAVA PROGRAMMING MCQ

Hello, Welcome to possible. In this blog we will see the one of the most famous language Java’s mcq. This programming language is mostly used in mobile application, software and desktop application.

Most Asked MCQ in Java

Q.1] Who is the founder of the Java language.

  1. Dennis Ritchie
  2. James Gosling
  3. Bell Gates
  4. Larry Page

Q.2] What is the original name of Java programming?

  1. J++
  2. Green
  3. TEAK
  4. OAK

Q.3] What is a Compiler?

  1. Converts source code to low level code.
  2. Converts all instruction in one statements.
  3. B and A are the correct
  4. Only  A is correct.

Q.4] Which software compile the program?

  1. Java Virtual Machine
  2. Command Prompt
  3. Java Development Kit
  4. Java Runtime environment

Q.5] What is the smaller part of the program…

  1. Tokens
  2. Constant
  3. Keywords
  4. Identifier

Q.6] …… keyword is used for the memory management in java programming.

  1. Super keyword
  2. Static keyword
  3. This keyword
  4. New keyword

Q.7] Which of the following statement is correct for the Super keyword?

  1. It is used to refer to the common property of all objects.
  2. Used for the memory management.
  3. Is used to refer parent class object.
  4. Refer the current object in a method or constructor.

Q.8] …. Keyword is used to create an object in java.

  1. Object
  2. import
  3. new
  4. void

Q.9] ………. Is represent the IS-A relationship.

  1. Encapsulation
  2. Abstraction
  3. Polymorphism
  4. Inheritance

Q.10] An abstract class in java can be created using the keyword…..

  1. final
  2. interface
  3. abstract
  4. static

Q.11] What is the method overriding in java?

  1. A subclass has the same method as declared in the parent class.
  2. Multiple function with the same name but different parameters
  3.  A and B both are correct
  4. None of these

Q.12] ……..packages is used to for the graphical interface.

  1. java.net
  2. java. applet
  3. java. util
  4. java.awt

Q.13] What is the minimum priority of the thread?

  1. 0
  2. 1
  3. 10
  4. None of these

Q.14] When does Exception in java arises in code sequence?

  1. At compile time
  2. Runtime
  3. Can occure any time
  4. When method is called

Q.15] Output of an applet window is performed by….

  1. System.out.Println()
  2. Void paint()
  3. drawString()
  4. None of the these

Leave a Reply

Your email address will not be published. Required fields are marked *