Advertisement
Advertisement
12th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 6 | Attempts: 1278 | Last updated: Mar 15, 2025
-
Sample QuestionWhat is the base class for Error and Exception in Java?
Questions: 10 | Attempts: 305 | Last updated: Mar 19, 2025
-
Sample QuestionWhat was Java initially called?
Questions: 15 | Attempts: 114 | Last updated: Mar 21, 2025
-
Sample QuestionWhat would be the result of attempting to compile and run the followingprogram?
Questions: 20 | Attempts: 312 | Last updated: Mar 21, 2025
-
Sample QuestionWhich of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L;
Questions: 42 | Attempts: 190 | Last updated: Mar 14, 2025
-
Sample QuestionWhat is the size of a Char?
Questions: 30 | Attempts: 155 | Last updated: Mar 14, 2025
-
Sample QuestionWhich one among these are OOPS features?
Questions: 25 | Attempts: 427 | Last updated: Mar 21, 2025
-
Sample QuestionPublic class Swap { public static void swapStrings(String x, String y){ String temp = x; x=y; y=temp; } public static void main(String[] args) { String a = "1"; String b = "2"; swapStrings(a, b); System.out.println("a="+a+" ,b="+b); }} What will be the output when executing this main?
Questions: 79 | Attempts: 85 | Last updated: Jun 19, 2025
-
Sample QuestionWhich are true1. members in interface are protected implicitly if interface is protected2. members in interface are public implicitly if interface is public3. interface can inherit another interface4. class can inherit any number of interfaces5. if an abstract class implements an interface, we have to override abstract method of the interface
Questions: 50 | Attempts: 120 | Last updated: Jul 17, 2025
-
Sample QuestionIs a Container object in GUI programming a primitive variable that contains...
Questions: 93 | Attempts: 198 | Last updated: Mar 18, 2025
-
Sample QuestionObject-Oriented Programming means
Advertisement