AP CSA Unit 3 Day 13: Super Keyword

Unit 3, Classes & Objects • Cycle 2
Day 13 Advanced Practice • Harder Difficulty
Focus: super Keyword Hard super Keyword

Advanced Practice Question

Format: super Keyword

What is the output?
public class A {
    public void show() {
        System.out.print("A");
    }
}

public class B extends A {
    public void show() {
        super.show();
        System.out.print("B");
    }
}

// In another class:
B obj = new B();
obj.show();
Difficulty: Hard  |  Topic: super Keyword  |  Cycle: 2 (Advanced)
Why This Answer?

super.show() calls the parent's version first (prints A), then the subclass continues and prints B.

Common Mistake
Watch Out!

Thinking super.show() only works if you don't override the method.

AP Exam Strategy

super.methodName() explicitly calls the parent's version from the subclass.

Master This Topic

This Cycle 2 HARD question tests super keyword. Review Unit 3 concepts to build mastery of classes & objects.

  • Understanding super keyword
  • Tracing code execution accurately
  • Avoiding common pitfalls
View Unit 3 Study Guide

Ready for More Challenges?

Cycle 2 questions prepare you for the hardest AP CSA exam questions.

Study Games Practice FRQs
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.