Advertisement
Advertisement
10th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
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)
Questions: 40 | Attempts: 657 | Last updated: Sep 7, 2025
-
Sample QuestionWhich statements are true about comparing two instances of the same class,given that the equals() and hashCode() methods have been properly overridden? (choose all that apply)
Questions: 35 | Attempts: 146 | Last updated: Aug 6, 2025
-
Sample QuestionWhich access modifier have almost identical behaviour as that of default.?
Questions: 40 | Attempts: 150 | Last updated: Mar 21, 2025
-
Sample QuestionChoose the possible constructor arguments of the Float wrapper class.
Questions: 45 | Attempts: 685 | Last updated: Sep 5, 2025
-
Sample QuestionConsider the following code: 1. class Test { 2. public static void main(String args[]) { 3. double d = 12.3; 4. Dec dec = new Dec(); 5. dec.dec(d); 6. System.out.println(d); 7. } 8. } 9. class Dec{ 10. public void dec(double d) { d = d - 2.0d; } 11. } Which of the following gives the correct value printed at line 6?
Questions: 50 | Attempts: 1761 | Last updated: Jul 4, 2025
-
Sample QuestionWhat is the range of an int data type in Java?
Questions: 30 | Attempts: 4735 | Last updated: Jan 12, 2025
-
Sample QuestionChoose the operations that can be performed on String objects: (A) + (B) + = (C) - (D) % (E) ^
Questions: 30 | Attempts: 113 | Last updated: Oct 14, 2025
-
Sample QuestionWhich of the following lines will compile without warning or error.
Advertisement