Multiple choice

Does the Java language provide virtual method, like C++?

  1. Yes

  2. No

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

In Java, all non-static methods are virtual by default, meaning they can be overridden by subclasses.