Advertisement
Advertisement
Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 42 | Attempts: 1279 | Last updated: Mar 21, 2025
-
Sample QuestionWhat is the size of a Char?
Questions: 31 | Attempts: 280 | Last updated: Mar 22, 2025
-
Sample QuestionIs the following statement true or false? The constructor of a class must not have a return type.
Questions: 46 | Attempts: 279 | Last updated: Mar 20, 2025
-
Sample QuestionMethods can return more than one primitive data type or object.
Questions: 93 | Attempts: 33240 | Last updated: Mar 21, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 35 | Attempts: 700 | Last updated: Mar 20, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 6 | Attempts: 433 | Last updated: Mar 20, 2025
-
Sample QuestionWhat is the size of a Char in Java?
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?
Questions: 10 | Attempts: 258 | Last updated: Jul 3, 2025
-
Sample QuestionWhat is the primary purpose of the "this" keyword in Java?
Questions: 20 | Attempts: 1514 | Last updated: Mar 22, 2025
-
Sample QuestionWhich of the following statement is true regarding constructors? Which of the following statement is true regarding constructors?
Questions: 30 | Attempts: 753 | Last updated: May 15, 2025
-
Sample QuestionFollowing code will compile. public class TestOnOprs { public static void main(String[] args) { float f = 36.25; System.out.println(f); } }
Advertisement