1. Home
  2. PDF downloads
  3. Computer Science MCQs PDF
  4. JAVA MCQs PDF

JAVA MCQs PDF Download

Download 14 JAVA MCQs from Computer Science as a free PDF, with answers. Every question is also available online with an explanation, so you can practise, check your answers and revise the parts you get wrong. Last updated 19 November 2026.

14 MCQs with answers Downloaded 1 time Updated 19 November 2026

Download JAVA MCQs PDF

Number of questions
Answers
Practice online

Free, no sign-up. A4 PDF with numbered questions, options A–D, answer key and a QR code to practise online.

Share with your study group

Preview: first 10 JAVA MCQs

1. In the context of functional programming, what is the Y-combinator used for?

  1. A. Memory allocation optimization
  2. B. Implementing recursion without named functions
  3. C. Type inference
  4. D. Lazy evaluation
Show answer

Correct answer: B – Implementing recursion without named functions

See the explanation

2. Which Java version introduced var keyword?

  1. A. 8
  2. B. 9
  3. C. 10
  4. D. 11
Show answer

Correct answer: C – 10

See the explanation

3. Which garbage-collector is low-latency in Java 17?

  1. A. Serial
  2. B. Parallel
  3. C. G1
  4. D. ZGC
Show answer

Correct answer: D – ZGC

See the explanation

4. Which keyword creates an immutable list in Java 9+?

  1. A. Arrays.asList()
  2. B. Collections.unmodifiableList()
  3. C. List.of()
  4. D. new ImmutableList()
Show answer

Correct answer: C – List.of()

See the explanation

5. What is the default value of an int instance variable in Java?

  1. A. null
  2. B. −1
  3. C. 1
  4. D. 0
Show answer

Correct answer: D – 0

See the explanation

6. Which keyword prevents a method from being overridden in a subclass?

  1. A. volatile
  2. B. transient
  3. C. abstract
  4. D. final
Show answer

Correct answer: D – final

See the explanation

7. In Java, what does "Hello" == new String("Hello") evaluate to?

  1. A. false
  2. B. true
  3. C. A runtime exception
  4. D. A compile-time error
Show answer

Correct answer: A – false

See the explanation

8. Which Java collection does not allow duplicate elements?

  1. A. Vector
  2. B. ArrayList
  3. C. HashSet
  4. D. LinkedList
Show answer

Correct answer: C – HashSet

See the explanation

9. Which exceptions must be either caught or declared in a throws clause?

  1. A. Unchecked exceptions such as NullPointerException
  2. B. Checked exceptions such as IOException
  3. C. Errors such as OutOfMemoryError
  4. D. Runtime exceptions such as ArithmeticException
Show answer

Correct answer: B – Checked exceptions such as IOException

See the explanation

10. Which method signature lets the JVM start a standalone Java application?

  1. A. private static void main(String[] args)
  2. B. public void main(String[] args)
  3. C. public static void main(String[] args)
  4. D. public static int main(String[] args)
Show answer

Correct answer: C – public static void main(String[] args)

See the explanation

More Computer Science topics

Full subject & exam PDFs

JAVA MCQs PDF – FAQ

Is the JAVA MCQs PDF free?

Yes. The JAVA MCQs PDF is completely free. You do not need an account; just choose how many questions you want and press Download PDF.

How many questions are in the JAVA MCQs PDF?

There are 14 JAVA MCQs with answers. PDFs are made topic by topic: pick a topic and download 25, 50, 75, 100, 200, 300 or up to 500 questions in one file.

Does the PDF include the answers?

Yes. Choose "Answer key at the end" for a self-test sheet, or "Answer under each question" for quick revision. The online version also explains each answer.

Can I practise JAVA MCQs online?

Yes. Press Practice online to answer the same questions on MCQsExam, see explanations, and take a timed test with a free certificate.

Is the JAVA PDF updated?

The PDF is rebuilt automatically whenever new JAVA MCQs are added or corrected. It was last updated on 19 November 2026.