Advertisement
Advertisement
11th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 31 | Attempts: 285 | Last updated: Mar 22, 2025
-
Sample QuestionIs the following statement true or false? The constructor of a class must not have a return type.
Questions: 46 | Attempts: 288 | Last updated: Mar 20, 2025
-
Sample QuestionMethods can return more than one primitive data type or object.
Questions: 35 | Attempts: 701 | Last updated: Mar 20, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 6 | Attempts: 434 | Last updated: Mar 20, 2025
-
Sample QuestionWhat is the size of a Char in Java?
Questions: 38 | Attempts: 3725 | Last updated: May 22, 2025
-
Sample QuestionConsider the following code: Line no 1:class Outer{ Line no 2:public static class Inner{ Line no 3:} Line no 4:public static void display(){ } } Line no 5:public class Test Line no 6:{ Line no 7:public static void main(String args[]) Line no 8:{ Line no 9://Replace with code from the option below Line no 10:}} Which of the following option when replaced at line no 9,instantiates an instance of the nested class?
Questions: 10 | Attempts: 263 | Last updated: Jul 3, 2025
-
Sample QuestionWhat is the primary purpose of the "this" keyword in Java?
Questions: 20 | Attempts: 1516 | Last updated: Mar 22, 2025
-
Sample QuestionWhich of the following statement is true regarding constructors? Which of the following statement is true regarding constructors?
Questions: 22 | Attempts: 12437 | Last updated: Sep 1, 2025
-
Sample QuestionWhich method in the HttpServlet class services the HTTP POST request? (Select one)
Questions: 30 | Attempts: 231 | Last updated: Jul 12, 2025
-
Sample QuestionConsider the following code: public class TestOne { public static void main(String args[]) { byte x = 3; byte y = 5; System.out.print((y%x) + ", "); System.out.println(y == ((y/x) *x +(y%x))); } } Which of the following gives the valid output for above?
Questions: 40 | Attempts: 97 | Last updated: Oct 7, 2025
-
Sample QuestionUnder which of the following scenarios a checked exception is thrown? (Choose 2)
Advertisement