java.lang.ClassCastException

后端 未结 6 645
感情败类
感情败类 2020-11-29 07:27

Normally whats the reason to get java.lang.ClassCastException ..? I get the following error in my application

java.lang.ClassCastException: [Lcom.rsa.authag         


        
6条回答
  •  攒了一身酷
    2020-11-29 08:01

    According to the documentation:

    Thrown to indicate that the code has attempted to cast an Object to a subclass of which it is not an instance. For example, the following code generates a ClassCastException:

    Object x = new Integer(0);
    System.out.println((String)x); 
    

提交回复
热议问题