how to delete objects to free memory ?????????????

and when did Garbage Collector work to delete unused objects ????????

You don't delete objects - they get cleaned up when they go out of scope and have no more active references.

Perhaps this article will answer your questions: http://www.ibm.com/developerworks/java/library/j-jtp01274.html

(though next time, you don't need to put 15 questions marks on them - one will suffice)

Thanks

and for your notation ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.