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

Coderanch | meeta gaur | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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