By using the keyword ________, a subclass can call a method defined in its superclass.
- extends
- inherit
- override
- super
In Java, the keyword used to call a method defined in the superclass from a subclass is super. It's commonly used to access overridden methods or constructors in the parent class.
Loading...
Related Quiz
- What is the purpose of serialization in Java?
- Imagine a scenario where you need to send a text message over a network using Java. How would you utilize byte streams and character streams to ensure that the message is correctly received and encoded on the other side?
- What is the purpose of the flatMap() method in the Stream API?
- To access or modify the private fields in a class, you should use ________ methods.
- The ________ method of the Thread class is used to determine if a thread is still running.