Advertisement
Advertisement
Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 25 | Attempts: 972 | Last updated: Mar 20, 2025
-
Sample QuestionGiven: 11. public interface Status { 12. /* insert code here */ int MY_VALUE = 10; 13. } Which three are valid on line 12? (Choose three.)
Questions: 21 | Attempts: 90 | Last updated: Oct 8, 2025
-
Sample QuestionWhat will be the output?public class Test { static String a; static String b; public static void main(String ars[]){ System.out.print(a+b); }}
Questions: 241 | Attempts: 185 | Last updated: Mar 20, 2025
-
Sample Question¿Qué clase Colletion garantiza que no existan duplicados?
Questions: 35 | Attempts: 112 | Last updated: Feb 13, 2025
-
Sample QuestionIs it possible to have abstract static method for a class?
Questions: 50 | Attempts: 242 | Last updated: Mar 22, 2025
-
Sample QuestionYou would use Java because?
Questions: 10 | Attempts: 143 | Last updated: Mar 10, 2025
-
Sample QuestionGroovy has a literal form for each of its numeric literals except BigDecimal.
Questions: 25 | Attempts: 480 | 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: 446 | Last updated: Mar 20, 2025
-
Sample QuestionWhich is the valid declarations within an interface definition?
Questions: 93 | Attempts: 551 | Last updated: Mar 21, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 10 | Attempts: 228 | Last updated: Mar 19, 2025
-
Sample QuestionOne word should be sufficient enough to hold –
Advertisement