Page 1 of 1

About Question enthuware.ocpjp.i.v11.2.3084 :

Posted: Tue Aug 27, 2019 6:00 am
by hamzaBlm
Hi all!

(unrelated) I know when the class is loaded it execute static declarations/blocks. (related) But what does mean "loaded"? loaded where? In the heap? Can you explain what the term "loaded" mean?

Re: About Question enthuware.ocpjp.i.v11.2.3084 :

Posted: Tue Aug 27, 2019 7:40 am
by admin
Loaded means creation of an instance of java.lang.Class class that represents the class that you are trying to load by the class loader. Since it is an object, it is obviously created on the heap.

Re: About Question enthuware.ocpjp.i.v11.2.3084 :

Posted: Tue Aug 27, 2019 7:45 am
by hamzaBlm
Understood. Many Thanks, Paul :thumbup: