Java foundamental: 18 MCQs

All 18 multiple-choice questions from this kit, free and with no sign-up.

Warm-up · 10 questions

Q1. What is the purpose of the `public static void main(String[] args)` method in Java?

Beginner

Answers and explanations are in the Veda app.

Q2. What does the `final` keyword mean when applied to a variable?

Beginner

Answers and explanations are in the Veda app.

Q3. What is a constructor in Java?

Beginner

Answers and explanations are in the Veda app.

Q4. What is the purpose of the `this` keyword in Java?

Beginner

Answers and explanations are in the Veda app.

Q5. What is the purpose of the `static` keyword in Java?

Beginner

Answers and explanations are in the Veda app.

Q6. What is the purpose of the `try-catch` block in Java?

Beginner

Answers and explanations are in the Veda app.

Q7. What does the `super` keyword do in Java?

Beginner

Answers and explanations are in the Veda app.

Q8. What is the difference between `public`, `private`, and `protected` access modifiers?

Beginner

Answers and explanations are in the Veda app.

Q9. What is the purpose of the `instanceof` operator?

Beginner

Answers and explanations are in the Veda app.

Q10. What is the difference between `break` and `continue` in loops?

Beginner

Answers and explanations are in the Veda app.

Building up · 8 questions

Q11. What is the difference between `int` and `Integer` in Java?

Intermediate

Answers and explanations are in the Veda app.

Q12. Explain the concept of garbage collection in Java.

Intermediate

Answers and explanations are in the Veda app.

Q13. What is the difference between `==` and `.equals()` in Java?

Intermediate

Answers and explanations are in the Veda app.

Q14. What is the difference between an abstract class and an interface in Java?

Intermediate

Answers and explanations are in the Veda app.

Q15. What is the difference between method overloading and method overriding?

Intermediate

Answers and explanations are in the Veda app.

Q16. What is the difference between `ArrayList` and `LinkedList` in Java?

Intermediate

Answers and explanations are in the Veda app.

Q17. What is the difference between checked and unchecked exceptions in Java?

Intermediate

Answers and explanations are in the Veda app.

Q18. What is the purpose of the `StringBuilder` class?

Intermediate

Answers and explanations are in the Veda app.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Paper Solver

Get Veda free See what students get

Free to start · Android app and web · More than 40 languages