java.lang.ClassCastException: Animal

Coderanch | Arifa Riaz | 2 decades ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Casting Objects

    Coderanch | 2 decades ago | Arifa Riaz
    java.lang.ClassCastException: Animal

    Root Cause Analysis

    1. java.lang.ClassCastException


      at CastExample.main()
    2. Unknown
      1. CastExample.main(
      1 frame