Java Quizzes, Questions & Answers
Recent Java Quizzes
A quiz to assess the understanding of the Adv Java session in Serialization
Questions: 10 | Attempts: 330 | Last updated: Mar 21, 2023
-
Sample QuestionHow many methods does Serializable have?
This quiz assesses knowledge on Java programming concepts covered in Chapter 5 of the Greenfoot book, including variable declarations, control structures, and Boolean logic.
Questions: 26 | Attempts: 308 | Last updated: Mar 21, 2023
-
Sample QuestionWhat the value of x is at the end: int i=0; int x=0; while (i < 4) { x = x + i; i++; }
The 20130423-Invent Java Quiz assesses understanding of Java programming concepts including access modifiers, inheritance, data types, and class members. It is designed to test key skills in writing and understanding Java code,...
Questions: 10 | Attempts: 87 | Last updated: Nov 15, 2023
-
Sample QuestionWhat is the difference between private and public functions ?
Explore key concepts of Java programming through 'Programming in Java (1)'. This quiz assesses knowledge on Java APIs, JVM, and types of Java applications, enhancing understanding of Java's structure and capabilities.
Questions: 20 | Attempts: 639 | Last updated: Mar 21, 2023
-
Sample QuestionAPI stands for:
This Java Programming MCQ Exam assesses key Java concepts through multiple-choice questions. It tests knowledge on loops, string manipulation, switch-case logic, and database operations, making it relevant for learners aiming to...
Questions: 10 | Attempts: 476 | Last updated: Mar 21, 2023
-
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?
This quiz titled 'Greenfoot Ch 1-4' assesses foundational concepts in Java programming within the Greenfoot environment. It covers IDE usage, method signatures, constructors, compiling, and object-oriented principles such as...
Questions: 64 | Attempts: 1174 | Last updated: Mar 21, 2023
-
Sample Question“Functions” are represented by Java methods whose returnType is not void.
This Java programming quiz assesses understanding of exception handling, interface methods, and static context manipulations. It tests key skills like error handling, interface design, and string manipulation in Java, providing...
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?
Greenfoot Quiz 2 assesses knowledge on basic programming concepts using Greenfoot, including syntax, class naming, and method usage. It evaluates understanding of Java-based environment setup, correct coding practices, and...
Questions: 21 | Attempts: 881 | Last updated: Mar 21, 2023
-
Sample QuestionWhat are the { } symbols called?
Greenfoot Quiz 1 assesses understanding of Java programming concepts, focusing on method functionalities and definitions. It evaluates knowledge of method signatures, return types, and the distinction between void and non-void...
Questions: 14 | Attempts: 2740 | Last updated: Mar 21, 2023
-
Sample Question“Functions” are represented by Java methods whose returnType is not void.
This quiz evaluates your understanding of Core Java, focusing on syntax, programming structures, and key concepts such as static methods and abstract classes. Ideal for learners seeking to test their Java programming skills and...
Questions: 5 | Attempts: 322 | Last updated: Oct 4, 2024
-
Sample QuestionWhich is the correct way to declare and store a character value to a variable?