mercredi 3 mai 2017

Do primitives have an associated class object

I am new to reflection and looking to gain hold over the cocept.

Please explain the below statement if possible with an example

The Class Object

Before you can do any inspection on a class you need to obtain its java.lang.Class object.

All types in Java including the primitive types (int, long, float etc.) including arrays have an associated Class object.

How does the associated class object of int(primitive) look like?

I am not able to understand the hightlighted text.

Link for reference-[http://ift.tt/2p9M7AP]

thanks





Aucun commentaire:

Enregistrer un commentaire