Multiple choice technology programming languages

println exhibits which type of polymorphism

  1. Overloading

  2. Overriding

  3. Both 1 and 2

  4. Dynamic polymorphism

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The println method in Java exhibits overloading because there are multiple versions of println that accept different parameter types (int, String, boolean, etc.), all sharing the same name but different signatures. Overriding requires inheritance and redefining a method in a subclass, which is not what println demonstrates.