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