Advertisement
Advertisement
Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 10 | Attempts: 303 | 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: 10 | Attempts: 91 | Last updated: Mar 20, 2025
-
Sample QuestionWhat is the full meaning of JRE?
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: 30 | Attempts: 1218 | Last updated: Mar 21, 2025
-
Sample QuestionWhat is the range of short data types in Java?
Questions: 42 | Attempts: 190 | Last updated: Mar 14, 2025
-
Sample QuestionWhat is the size of a Char?
Questions: 30 | Attempts: 153 | 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: 25 | Attempts: 6832 | Last updated: Mar 22, 2025
-
Sample QuestionSwing components are
Questions: 40 | Attempts: 512 | Last updated: Mar 21, 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?
Advertisement