mardi 20 novembre 2018

Java - why does this input not generate ClassNotFoundException

While I am using reflection I came upon this error. I have a class named Test1, and when I try to get a Class object of it by entering test1 as input to Class.forName() it generates LinkageError instead of ClassNotFoundException. Why does the lower-case letter confuse the program and prevent it from generating the usual ClassNotFoundException as with for example "sjghdjgh"?





Aucun commentaire:

Enregistrer un commentaire