Advertisement
Advertisement
11th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
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.
Questions: 17 | Attempts: 553 | Last updated: Mar 21, 2025
-
Sample QuestionWhen data cannot be changed after a program is compiled,the data is_______________
Questions: 10 | Attempts: 2984 | Last updated: Jul 16, 2025
-
Sample QuestionIn Java, what do you name an area on the screen that has fine borders and various buttons on the top border?
Questions: 25 | Attempts: 737 | Last updated: Mar 19, 2025
-
Sample Questionimport myLibrary.*; public class ShowSomeClass { // code for the class... } What is the name of the java file containing this program?
Advertisement