Advertisement
Advertisement
11th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 10 | Attempts: 147 | Last updated: Mar 10, 2025
-
Sample QuestionGroovy has a literal form for each of its numeric literals except BigDecimal.
Questions: 25 | Attempts: 481 | Last updated: Sep 7, 2025
-
Sample QuestionWhat all gets printed when the following gets compiled and run? public class test { public static void main(String args[]) { int i=1, j=1; try { i++; j--; if(i/j > 1) i++; } catch(ArithmeticException e) { System.out.println(0); } catch(ArrayIndexOutOfBoundsException e) { System.out.println(1); } catch(Exception e) { System.out.println(2); } finally { System.out.println(3); } System.out.println(4); } } here
Questions: 50 | Attempts: 449 | Last updated: Mar 20, 2025
-
Sample QuestionWhich is the valid declarations within an interface definition?
Questions: 93 | Attempts: 552 | Last updated: Mar 21, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 10 | Attempts: 89 | Last updated: Oct 15, 2025
-
Sample QuestionWhat is the difference between private and public functions ?
Questions: 20 | Attempts: 640 | Last updated: Mar 21, 2025
-
Sample QuestionAPI stands for:
Questions: 10 | Attempts: 479 | Last updated: Mar 21, 2025
-
Sample QuestionInt i; int sum=0; for(i=2;i<=10;i+=2) sum+=i; System.out.println(""+sum); what is the output of the above program?
Questions: 10 | Attempts: 582 | Last updated: Mar 21, 2025
-
Sample Questionclass ColorException extends Exception {} class WhiteException extends ColorException {} class White { void m1() throws ColorException {throw new WhiteException();} void m2() throws WhiteException {} public static void main (String[] args) { White white = new White(); int a,b,d,f; a = b = d = f = 0; try {white.m1(); a++;} catch (ColorException e) {b++;} try {white.m2(); d++;} catch (WhiteException e) {f++;} System.out.print(a+","+b+","+d+","+f); }} What is the result of attempting to compile and run the program?
Questions: 5 | Attempts: 324 | Last updated: Oct 4, 2025
-
Sample QuestionWhich is the correct way to declare and store a character value to a variable?
Questions: 42 | Attempts: 1282 | Last updated: Mar 21, 2025
-
Sample QuestionWhat is the size of a Char?
Advertisement