Question 1 of 25
Hints left: 3
Q1
In Java, can a method have the same name as the class?
Q2
What is method overriding in Java?
Q3
In Java, can a constructor have a return type?
Q4
Which keyword is used to prevent method overriding in Java?
Q5
What is the purpose of method parameters in Java?
Q6
What is the purpose of the "this" keyword in Java constructors and methods?
Q7
In Java, what does the "final" keyword indicate when used with a method?
Q8
Which keyword is used to declare a method that cannot be overridden in Java?
Q9
What is method chaining in Java?
Q10
Which method is called when an object is garbage collected in Java?
Q11
Which access modifier is used for a method that can be accessed from any class in the same package?
Q12
What does the "void" keyword indicate in a method declaration?
Q13
Which keyword is used to call the constructor of the superclass in a subclass constructor?
Q14
In Java, which access modifier allows a method to be accessed from any class in any package?
Q15
What is a non-static (instance) method in Java?
Q16
What is method hiding in Java?
Q17
What is a parameterized constructor in Java?
Q18
What is the return type of a constructor in Java?
Q19
What is the purpose of the "return" statement in a method in Java?
Q20
In Java, which keyword is used to define an abstract method?
Q21
What is method signature in Java?
Q22
What is a "static" method in Java?
Q23
What is the difference between a method declaration and a method definition in Java?
Q24
What is the correct syntax to call a method named "myMethod" from an object "myObject"?
Q25
In Java, what is the purpose of the "super" keyword in a constructor?