Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is memory leakage? who is responsible for memory leakage? Is java is also suffer from memory leakage?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2013/11/21
Ajith Fernandez
par Ajith Fernandez , Software Engineer , Nayasoft Solutions Pvt.ltd

Memory leaks happens in C++ because of pointers. Improper handling of pointers will lead to memory leak. Java use garbage collector it will automatically delete all the unwanted memory. 

when we are using pointers these are used to store the address of the variable,but by using pointers there is chance of memory leakage i.e chance to know the other variable address i.e insecurity so that's why in place of pointers we are using reference variable to store objects in java.

More Questions Like This