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