Home » JAVA MCQ Questions with Answer

JAVA MCQ Questions with Answer

If you are preparing for a Java interview or want to test your Java skills, you might be looking for some Java MCQ questions and answers. These are multiple-choice questions that cover various topics and concepts of Java programming language. They can help you to assess your knowledge, identify your strengths and weaknesses, and improve your confidence. In this blog post, we will provide you with some of the best Java MCQ questions and answers that you can use for your practice. Let’s dive right in and explore these stimulating Java MCQs that cover various aspects of this versatile programming language. So, let’s get started! 😊

JAVA MCQ Questions and Answers:

Below, you will find the multiple choice questions for the Java programming language.

Q1. Who invented Java Programming?

  1. Guido van Rossum
  2. James Gosling
  3. Dennis Ritchie
  4. Bjarne Stroustrup

2. James Gosling


Q2. Which statement is true about Java?

  1. Java is a sequence-dependent programming language
  2. Java is a code dependent programming language
  3. Java is a platform-dependent programming language
  4. Java is a platform independent programming language

4. Java is a platform independent programming language


Q3. Which of the following is not a segment of memory in java?

  1. Code Segment
  2. Register Segment
  3. Stack Segment
  4. Heap Segment

2. Register Segment


Q4. What is Truncation in Java?

  1. Floating-point value assigned to a Floating type
  2. Floating-point value assigned to an integer type
  3. Integer value assigned to floating type
  4. Integer value assigned to floating type

2. Floating-point value assigned to an integer type


Q5. Which of these keywords is used to define interfaces in Java?

  1. intf
  2. Intf
  3. interface
  4. Interface

3. interface


Q6. Which of these class is a superclass of every class in Java?

  1. ArrayList class
  2. Abstract class
  3. Object class
  4. String class

3. Object class


Q7. What is the numerical range of a char data type in Java?

  1. 0 to 256
  2. -128 to 127
  3. 0 to 65535
  4. 0 to 32767

Q8. Which class provides system independent server side implementation?

  1. Server
  2. ServerReader
  3. Socket
  4. ServerSocket

4. ServerSocket


Q9. If one or more abstract methods are not implemented in an abstract class, then the subclass is also abstract.

  1. Not necessarily
  2. False
  3. True
  4. None of the above

3. True


Q10. Which of the following is not subclass of “writer” stream?

  1. FileWriter
  2. LineWriter
  3. BufferedWriter
  4. PrintWriter

2. LineWriter


JAVA MCQ Quiz and Online Test:

These JAVA MCQ practice sets gives you the feeling of reality and a clue to the questions asked in the actual JAVA programming related exams. When you solve these MCQ questions practically, you come across many difficulties that give you an opportunity to improve.

4.7/5 - (23 votes)
Scroll to Top