Multiple choice technology programming languages

In Java, all non-static methods are by default "virtual functions." Only methods marked with the keyword final are non-virtual.

  1. True

  2. False

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

In Java, all non-static and non-private methods are virtual by default and resolved via dynamic dispatch, meaning they can be overridden. Applying the final keyword prevents overriding and renders them non-virtual.