The memory management in Java is automated, so that programmers do not directly deal with memory allocations. A neat feature of Java is that memory allocations are taken care of automatically. The information in this document will give you some better ideas and tips to reduce the debugging time. The memory problems are extremely hard to debug and are very time consuming to fix and trouble-shoot.
Memory problems bring down the productivity of programmers.
Memory related bugs are very tough to crack, and even experienced programmers take several days, weeks or months to debug memory related problems. It can completely replace char datatype. But the price you pay for cross-platform portability is the performance, applications written in Java run very slow.