jeudi 23 janvier 2020

Difference between RTTI and Reflection in Java?

I was reading Thinking In Java and I noticed that the chapter on RTTI treats RTTI and Reflection separately. For me, both of these terms help to determine the type of an object at run time (hence, Runtime Type Information). I think maybe, I am missing something here because I read some people classify instanceof as RTTI and other things as Reflection.

Can someone elaborate on this a bit?

P.S. I am talking in terms of Java. I saw another question where the answer was based on C++ and it didn't make much sense in Java context





Aucun commentaire:

Enregistrer un commentaire