java.lang.ClassCastException: com.src.Car incompatible with com.src.Ford

Coderanch | Rahul Ba | 7 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

    Object type casting

    Coderanch | 7 years ago | Rahul Ba
    java.lang.ClassCastException: com.src.Car incompatible with com.src.Ford

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.src.Car incompatible with com.src.Ford

      at com.src.Client.main()
    2. com.src
      Client.main
      1. com.src.Client.main(Client.java:6)
      1 frame