java.lang.ClassCastException: A cannot be cast to B

Coderanch | meeta gaur | 4 years 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

    downcasting failed

    Coderanch | 4 years ago | meeta gaur
    java.lang.ClassCastException: A cannot be cast to B
  2. 0

    downcasting failed

    Coderanch | 4 years ago | Tony Docherty
    java.lang.ClassCastException: A cannot be cast to B

    Root Cause Analysis

    1. java.lang.ClassCastException

      A cannot be cast to B

      at B.main()
    2. Unknown
      B.main
      1. B.main(B.java:12)
      1 frame