📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which Java keyword is used to inherit a

    class?
    A implements Correct Answer Incorrect Answer
    B extends Correct Answer Incorrect Answer
    C super Correct Answer Incorrect Answer
    D inherit Correct Answer Incorrect Answer
    E interface Correct Answer Incorrect Answer

    Solution

    extends allows a class to inherit properties and methods from a parent class.

    Practice Next
    ask-question