Java Quizzes, Questions & Answers
Recent Quizzes
No Negative marking Attempt questions as many you can
Questions: 71 | Attempts: 460 | Last updated: Mar 22, 2023
-
Sample QuestionFollowing code will result in: int a = 3.5;
Questions: 25 | Attempts: 970 | Last updated: Mar 20, 2023
-
Sample QuestionGiven: 11. public interface Status { 12. /* insert code here */ int MY_VALUE = 10; 13. } Which three are valid on line 12? (Choose three.)
Java
Questions: 10 | Attempts: 385 | Last updated: Mar 22, 2023
-
Sample QuestionGiven:Which is most likely true? (Choose the most likely.)
Questions: 21 | Attempts: 90 | Last updated: Dec 8, 2023
-
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); }}
Describe your quiz in a few sentences
Questions: 241 | Attempts: 178 | Last updated: Mar 21, 2023
-
Sample Question¿Qué clase Colletion garantiza que no existan duplicados?
Below is a Data Types in Java Trivia Questions Quiz. There are two data types in java, and this is primitive and non-primitive. The main difference between the two is that one is already defined by java, and the programmer...
Questions: 10 | Attempts: 140 | Last updated: Mar 11, 2024
-
Sample QuestionGroovy has a literal form for each of its numeric literals except BigDecimal.
The computer window and operating system are essential to the functioning of a computer. Java Chapter 7 – Arrays may not be as simple or complex as you think so just try it out and see for yourself.
Questions: 21 | Attempts: 2192 | Last updated: Mar 22, 2023
-
Sample QuestionWhich of the following declares an array of int named beta?
Questions on closures, groovy truth, control structures, miscellaneous. abc
Questions: 11 | Attempts: 221 | Last updated: Oct 24, 2024
-
Sample QuestionUnlike a method a closure can only take one parameter.
It is created for Beginners in Java. This is to test the knowledge of any Java Developer wannabe.
Questions: 59 | Attempts: 9930 | Last updated: Jun 16, 2024
-
Sample QuestionIf none of the private/protected/public is specified for a member, that member ...
Questions: 10 | Attempts: 86 | Last updated: Oct 19, 2023
-
Sample QuestionWhich statement is true? (Choose all that apply)
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: 202 | 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: 326 | 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: 492 | 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: 172 | 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: 1273 | Last updated: Mar 21, 2023
-
Sample QuestionWhat is the size of a Char?
Questions: 31 | Attempts: 252 | Last updated: Mar 22, 2023
-
Sample QuestionIs the following statement true or false? The constructor of a class must not have a return type.
Questions: 46 | Attempts: 177 | Last updated: Mar 20, 2023
-
Sample QuestionMethods can return more than one primitive data type or object.
This is the ultimate Java test for all those Java developer-wannabes who have just began practicing the programming language. It consists of over 93 questions of basically Core Java. So, if you are one of them and want to have a...
Questions: 93 | Attempts: 32143 | Last updated: Nov 24, 2024
-
Sample QuestionObject-Oriented Programming means ...
.
Questions: 35 | Attempts: 699 | Last updated: Mar 20, 2023
-
Sample QuestionObject-Oriented Programming means ...
Java is one of the most popular computer programming languages. If you've studied about it, then try this Java trivia test quiz and see if you can pass this test or not. This might also give you the chance to revise your...
Questions: 38 | Attempts: 3722 | Last updated: May 29, 2023
-
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?
This Basic Concepts Of JAVA Quiz is designed to test your understanding of essential JAVA programming principles. This quiz covers key topics such as data types, variables, operators, control statements, loops, arrays, and...
Questions: 10 | Attempts: 240 | Last updated: Jul 3, 2024
-
Sample QuestionWhat is the primary purpose of the "this" keyword in Java?
Advertisement