Advertisement
Advertisement
10th Grade Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 46 | Attempts: 288 | Last updated: Mar 20, 2025
-
Sample QuestionMethods can return more than one primitive data type or object.
Questions: 93 | Attempts: 33317 | Last updated: Mar 21, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 35 | Attempts: 701 | Last updated: Mar 20, 2025
-
Sample QuestionObject-Oriented Programming means ...
Questions: 6 | Attempts: 434 | Last updated: Mar 20, 2025
-
Sample QuestionWhat is the size of a Char in Java?
Questions: 38 | Attempts: 3725 | 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: 263 | Last updated: Jul 3, 2025
-
Sample QuestionWhat is the primary purpose of the "this" keyword in Java?
Questions: 20 | Attempts: 1516 | 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: 759 | 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); } }
Questions: 6 | Attempts: 138 | Last updated: May 6, 2025
-
Sample QuestionJava is
Questions: 23 | Attempts: 1630 | Last updated: Jan 17, 2025
-
Sample QuestionRefer to the following variable declaration for this question: int[] numbers = {1,2,3,4,5,6,7,8,9,10}; Which of the following is a valid conclusion based on this variable declaration?
Advertisement