Q1
Which keyword is used by a class to inherit from another class in Java?
easyCorrect Answer: extends
Explanation:
The extends keyword is used by a child class to inherit fields and methods from a parent class in Java.