lundi 2 février 2015

I am a little bit confused. Java has some reflection methods to call on Class objects.

But I wonder what is the interconnection between Class class and class keyword in java.

Class is just class that uses to represent class istself (methods, fields,annotations) as an object, because everything in java is an object. class keyword is used on language level syntax to represent an entity.

When class loader loads class into memory permgen( I know that ther is no such memory area now) ,but to represent class as an object we need an object, so in this case Class comes into play.

Am I correct ? Please explain how does it works ?






Aucun commentaire:

Enregistrer un commentaire