Java is a well-known programming language, made in 1995. It is claimed by Oracle, and in excess of 3 billion gadgets run Java. It is utilized for versatile applications, Work area applications, Web applications, Web workers and application workers, Games and Information base associationJava utilizes a programmed garbage man to oversee memory in the article lifecycle. The software engineer decides when items are made, and the Java runtime is liable for recuperating the memory once protests are not, at this point being used. When no references to an item stay, the inaccessible memory gets qualified to be liberated consequently by the garbage man. Something like a memory break may in any case happen if a software engineer's code holds a reference to an article that is not, at this point required, regularly when protests that are not, at this point required are put away in compartments that are as yet being used. On the off chance that strategies for a non-existent article are called, an invalid pointer exemption is tossed.