I have a class named "Test" which I am passing to a method as Test.class
which will be of type Class<T> clazz
.
I need to call toString() method of class Test from that clazz variable. Can we do that using reflection without typecasting clazz to Test?
Aucun commentaire:
Enregistrer un commentaire