In Java, when a subclass has the same method as declared in the parent class, it is known as method ________.
- hiding
- inheriting
- overloading
- overriding
When a subclass has the same method name, return type, and parameters as declared in the parent class, it is known as method overriding. The subclass provides a specific implementation for that method.
Loading...
Related Quiz
- The FXMLLoader class is utilized to load ________ files.
- The ________ class represents a Uniform Resource Identifier and is designed to handle the complete URI syntax.
- The collect() method in the Stream API is a type of ________ operation.
- Lambda expressions eliminate the need for ________.
- How does Java differentiate between a constructor and a method?