Advertisement
Advertisement
Java Quizzes, Questions & Answers
Recent Java Quizzes
Questions: 79 | Attempts: 85 | Last updated: Jun 19, 2025
-
Sample QuestionWhich are true1. members in interface are protected implicitly if interface is protected2. members in interface are public implicitly if interface is public3. interface can inherit another interface4. class can inherit any number of interfaces5. if an abstract class implements an interface, we have to override abstract method of the interface
Questions: 42 | Attempts: 1081 | Last updated: Mar 22, 2025
-
Sample QuestionSuppose x = 2 and y = 3. If the statement x *= y; is executed once, what is the value of x?
Questions: 50 | Attempts: 120 | Last updated: Jul 17, 2025
-
Sample QuestionIs a Container object in GUI programming a primitive variable that contains...
Questions: 93 | Attempts: 197 | Last updated: Mar 18, 2025
-
Sample QuestionObject-Oriented Programming means
Questions: 20 | Attempts: 3917 | Last updated: Mar 22, 2025
-
Sample QuestionWhich of the following statements about the fetch modes in Entity beans is FALSE?
Questions: 39 | Attempts: 2230 | Last updated: Feb 9, 2025
-
Sample QuestionWhat is the size of a Char?
Questions: 10 | Attempts: 172 | Last updated: Mar 21, 2025
-
Sample QuestionPrograms designed for maintainability are constructed from small simple pieces or modules. Modules in Java are called:
Questions: 10 | Attempts: 318 | Last updated: Mar 21, 2025
-
Sample QuestionWhich will legally declare, construct, and initialize an array?
Questions: 18 | Attempts: 337 | Last updated: Mar 20, 2025
-
Sample QuestionConsider the following program: class Point2D { private int x, y; public Point2D(int x, int y) { this.x = x; } public String toString() { return "[" + x + ", " + y + "]"; } public static void main(String []args) { Point2D point = new Point2D(10, 20); System.out.println(point.toString()); } } Which one of the following options provides the output of this program when executed?
Questions: 71 | Attempts: 639 | Last updated: Mar 22, 2025
-
Sample QuestionFollowing code will result in: int a = 3.5;
Advertisement