Java MCQ Set 1

Explore this diverse selection of multiple-choice questions (MCQs) designed for various examinations. Java MCQ Set 1 focuses on essential aspects of the subject, ensuring comprehensive preparation across different categories and fields of study to enhance your knowledge and readiness. The right answers for each question is provided next to respective questions for your convenience, you can either attend the test or dirtectly access the right answers by clicking the show correct answer button

Each correct answer earns 1 mark, while each incorrect answer deducts 0.3 marks.
1. Which of the following is not a Java feature?
2. What is the extension of Java code files?
3. Which of these cannot be used for a variable name in Java?
4. Which of the following is a valid declaration of a char?
5. What is the default value of byte variable?
6. What is the size of a boolean variable?
7. Which of the following is a marker interface?
8. Which keyword is used for accessing the features of a package?
9. What is the return type of the hashCode() method in the Object class?
10. What does the expression float a = 35 / 0 return?
11. Where does the system store parameters and local variables whenever a method is invoked?
12. What is the implicit return type of constructor?
13. Which of the following is a reserved keyword in Java?
14. In which process, a local variable has the same name as one of the instance variables?
15. Which of these are selection statements in Java?
16. Which of the following is not a keyword in Java?
17. What is the entry point for a Java program?
18. What is the output of the following code: System.out.println(10 + 20 + \30\")?"""
19. Which of the following can be considered as valid identifiers in Java?
20. Which of the following is not an OOPS concept in Java?
Question Navigation

Related MCQs

Java MCQ Set 2

Number of Questions: 20