Question 134

Method overloading in Java is an example of:

  1. AEncapsulation
  2. BCompile-time polymorphism
  3. CAbstraction
  4. DRun-time polymorphism
Show answerHide answer

Correct answer: (B) Compile-time polymorphism

Explanation

Overloading is resolved at compile time; overriding at run time.

From DSSSB TGT Computer Science Full Mock Test 1

This is question 134 of DSSSB TGT Computer Science Full Mock Test 1. 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.