java.lang.ClassCastException: Animal

Coderanch | Arifa Riaz | 2 decades ago
tip
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

      Animal

      at CastExample.main()
    2. Unknown
      CastExample.main
      1. CastExample.main(CastExample.java:37)
      1 frame