Java Quizzes, Questions & Answers
Recent Quizzes
Questions: 50 | Attempts: 446 | Last updated: Mar 20, 2023
-
Sample QuestionWhich is the valid declarations within an interface definition?
Questions: 93 | Attempts: 548 | Last updated: Mar 21, 2023
-
Sample QuestionObject-Oriented Programming means ...
Questions: 10 | Attempts: 212 | Last updated: Mar 19, 2023
-
Sample QuestionOne word should be sufficient enough to hold –
A quiz to assess the understanding of the Adv Java session in Serialization
Questions: 10 | Attempts: 329 | Last updated: Mar 21, 2023
-
Sample QuestionHow many methods does Serializable have?
Questions: 10 | Attempts: 87 | Last updated: Nov 15, 2023
-
Sample QuestionWhat is the difference between private and public functions ?
æ¡è¿Žä¾†æŒ‘戰 SCJP 6.0_JAVA_ level 1
Questions: 10 | Attempts: 494 | Last updated: Mar 20, 2023
-
Sample QuestionGiven: public class TestString1 { public static void main(String[] args) { String str = "420"; str += 42; System.out.print(str); } } What is the output?
æ¡è¿Žä¾†æŒ‘戰 SCJP 6.0_JAVA_ level 2
Questions: 10 | Attempts: 174 | Last updated: Mar 18, 2023
-
Sample QuestionGiven: class One { void foo() { } } class Two extends One { // insert method here } Which three methods, inserted individually at line 14, will correctly complete class Two? (Choose three.)
Questions: 10 | Attempts: 580 | Last updated: Mar 21, 2023
-
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?
If you are preparing for Java developer, then you should definitely take this Java fundamentals programming quiz.
Questions: 42 | Attempts: 1275 | Last updated: Mar 21, 2023
-
Sample QuestionWhat is the size of a Char?
Questions: 31 | Attempts: 260 | Last updated: Mar 22, 2023
-
Sample QuestionIs the following statement true or false? The constructor of a class must not have a return type.
Advertisement