Multiple choice technology programming languages

whether the casting of objects can be done in java?

  1. True

  2. False

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

Casting of objects is fully supported in Java. Reference variables can be cast to another type (either upcasting, which is implicit, or downcasting, which must be explicit and is checked at runtime, potentially throwing a ClassCastException).