11th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
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 22, 2025
-
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: 256 | Last updated: Jul 3, 2025
-
Sample QuestionWhat is the primary purpose of the "this" keyword in Java?
This is a Java programming language quiz. Take this practice quiz and learn more codings of java.
Questions: 20 | Attempts: 1486 | Last updated: Mar 22, 2025
-
Sample QuestionWhich of the following statement is true regarding constructors? Which of the following statement is true regarding constructors?
Have you practiced Java enough that you are ready to learn advanced Java? Take this advanced Java quiz, and see how much you have learned. This will examine your understanding of JSP, Servlet, and Design patterns. You will get an...
Questions: 22 | Attempts: 12231 | Last updated: Sep 1, 2025
-
Sample QuestionWhich method in the HttpServlet class services the HTTP POST request? (Select one)
This Eclipse JAVA quiz assesses knowledge in Java programming, focusing on thread handling, operations, and concurrency. It tests understanding of thread behavior, output predictions, and Java's fundamental concepts, enhancing...
Questions: 30 | Attempts: 229 | Last updated: Jul 12, 2025
-
Sample QuestionConsider the following code: public class TestOne { public static void main(String args[]) { byte x = 3; byte y = 5; System.out.print((y%x) + ", "); System.out.println(y == ((y/x) *x +(y%x))); } } Which of the following gives the valid output for above?
This 'java core mock test 4' assesses knowledge on Java core concepts such as exception handling, interfaces, abstract classes, and inheritance. It is designed to test understanding of code snippets, error identification, and...
Questions: 40 | Attempts: 96 | Last updated: Oct 7, 2025
-
Sample QuestionUnder which of the following scenarios a checked exception is thrown? (Choose 2)
CORE JAVA TEST 4 assesses knowledge in Java programming, focusing on class instance comparison, BitSet collections, Java Map interface, ArrayList features, Enumeration interface, and SortedSet usage. Key for learners enhancing...
Questions: 40 | Attempts: 651 | Last updated: Sep 7, 2025
-
Sample QuestionWhich statements are true about comparing two instances of the same class,given that the equals() and hashCode() methods have been properly overridden? (choose all that apply)
This Core Java mock test assesses knowledge of Java's access modifiers, inheritance, array initializations, and method overriding. It is designed to enhance understanding of Java programming principles and prepare learners for...
Questions: 35 | Attempts: 140 | Last updated: Aug 6, 2025
-
Sample QuestionWhich access modifier have almost identical behaviour as that of default.?
Do you know the core Java language? Java is a classed based language that was made to have minimum implementation dependencies. It is a general-purpose programming language that allows application developers to run anywhere....
Questions: 40 | Attempts: 148 | Last updated: Mar 21, 2025
-
Sample QuestionChoose the possible constructor arguments of the Float wrapper class.
INTRODUCTION TO OOPS
INTRODUCTION TO JAVA AND SDE
LANGUAGE FUNDAMENTALS AND OPERATORS
Questions: 45 | Attempts: 683 | Last updated: Sep 5, 2025
-
Sample QuestionConsider the following code: 1. class Test { 2. public static void main(String args[]) { 3. double d = 12.3; 4. Dec dec = new Dec(); 5. dec.dec(d); 6. System.out.println(d); 7. } 8. } 9. class Dec{ 10. public void dec(double d) { d = d - 2.0d; } 11. } Which of the following gives the correct value printed at line 6?
Advertisement