PDA

View Full Version : what is tostring() & finalize() in java



saneha
04-24-2011, 06:23 PM
Dear sir why these to functoins have been used in java codeing in handouts???

Vuhelper
04-24-2011, 06:25 PM
toString() returns a string containing all data stored in object attributes.
finalize() runs when object is being destroyed.