Advertisement
Advertisement
Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 15 | Attempts: 2834 | Last updated: Apr 22, 2025
-
Sample QuestionWhat is the default time for time parameter if it is not coded on Exec statement.
Questions: 14 | Attempts: 322 | Last updated: Mar 17, 2025
-
Sample QuestionWhat is a statement?
Questions: 18 | Attempts: 286 | Last updated: Mar 21, 2025
-
Sample Questionpublic class Converter { public static void main(String args [ ]) { Converter con = new Converter(); con.dollartoRupees(15); } double dollartoRupees(int dollar) { System.out.println (dollar+" dollar is equivalent to Rs" +dollar*25); } } What will be the output of this program?
Questions: 10 | Attempts: 136 | Last updated: Mar 20, 2025
-
Sample QuestionTrue or False: Arrays cannot be passed as parameters into methods, but their elements can be passed individually.
Questions: 10 | Attempts: 137 | Last updated: Mar 11, 2025
-
Sample QuestionTrue or False: Void methods do not have a type.
Questions: 9 | Attempts: 334 | Last updated: Mar 21, 2025
-
Sample QuestionTrue or False: A loop is a control-structure used for repetition of certain statements.
Questions: 11 | Attempts: 739 | Last updated: Mar 22, 2025
-
Sample QuestionTrue or False: Hello! is an example of a legal identifier.
Questions: 31 | Attempts: 860 | Last updated: Aug 21, 2025
-
Sample QuestionIn Java, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____.
Questions: 45 | Attempts: 749 | Last updated: Mar 21, 2025
-
Sample QuestionWhich of the following are uses of Object class?(Choose 3)
Questions: 10 | Attempts: 199 | Last updated: Mar 17, 2025
-
Sample QuestionWhich of the following is NOT a reserved word in Java?
Advertisement