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?
BeginnerAnswers and explanations are in the Veda app.
Q2. What does the `final` keyword mean when applied to a variable?
BeginnerAnswers and explanations are in the Veda app.
Q4. What is the purpose of the `this` keyword in Java?
BeginnerAnswers and explanations are in the Veda app.
Q5. What is the purpose of the `static` keyword in Java?
BeginnerAnswers and explanations are in the Veda app.
Q6. What is the purpose of the `try-catch` block in Java?
BeginnerAnswers and explanations are in the Veda app.
Q7. What does the `super` keyword do in Java?
BeginnerAnswers and explanations are in the Veda app.
Q8. What is the difference between `public`, `private`, and `protected` access modifiers?
BeginnerAnswers and explanations are in the Veda app.
Q9. What is the purpose of the `instanceof` operator?
BeginnerAnswers and explanations are in the Veda app.
Q10. What is the difference between `break` and `continue` in loops?
BeginnerAnswers and explanations are in the Veda app.
Building up · 8 questions
Q11. What is the difference between `int` and `Integer` in Java?
IntermediateAnswers and explanations are in the Veda app.
Q12. Explain the concept of garbage collection in Java.
IntermediateAnswers and explanations are in the Veda app.
Q13. What is the difference between `==` and `.equals()` in Java?
IntermediateAnswers and explanations are in the Veda app.
Q14. What is the difference between an abstract class and an interface in Java?
IntermediateAnswers and explanations are in the Veda app.
Q15. What is the difference between method overloading and method overriding?
IntermediateAnswers and explanations are in the Veda app.
Q16. What is the difference between `ArrayList` and `LinkedList` in Java?
IntermediateAnswers and explanations are in the Veda app.
Q17. What is the difference between checked and unchecked exceptions in Java?
IntermediateAnswers and explanations are in the Veda app.
Q18. What is the purpose of the `StringBuilder` class?
IntermediateAnswers and explanations are in the Veda app.
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