Question 34Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

Which among the following is an example of compile-time polymorphism in Java?

  1. AMethod overriding
  2. BInterfaces
  3. CAbstract classes
  4. DMethod overloading
Show answerHide answer

Correct answer: (D) Method overloading

Explanation

Method overloading (same name, different parameter lists) is resolved by the compiler, so it is compile-time (static) polymorphism. Method overriding is resolved at run time.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM)

This is question 34 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 2 (1:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.