Thanks and Regards, Amit Taneja
Taken From: amit taneja
Q2. How can you minimize the need of garbage collection and make the memory use more effective?
A. weak object references.
Taken From: amit taneja
Q3. What comes to mind when you hear about a young generation in Java?
A. Garbage collection.
Consultant to SCJP team.<br />Co-designer of SCJD exam.<br />Co-author of "Complete Java 2 Certification Study Guide".<br />Author of "Ground-Up Java".
hi
i will give ans to u r 1st question
what is mean by shallow copy
it is funda of object serialization and cloninig
u might know what is mean by cloaning most of the time we want to create
copy of object which has same initial state in that case we are using cloaning
class has attributes and properties
whereas object has state and behaviour
instance variables might be primitive or non primitive
when we clone object of class which has non primitive variables only
reference get copied not actual object
this is known as shallow copy
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Arjun K:
The allocated objects are divided in generations according to their ages, and young generations are checked more often than the older ones. On young generation fill up the objects will be moved up to old generation and permanent generations.
Also you can decide on young generation partitions and sizes with
-XX:NewSize
-XX:MaxNewSize
-XX:NewRatio
-XX:SurvivorRatio
HTH,
Arjun.
Thanks and Regards, Amit Taneja
Originally posted by amit taneja:
didn't get it what do u mean by this ??
"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |