Memory leak risks are higher in java or C++?? Explain it.
Java has no explicit memory reclamation operators--garbage collection used instead. Java has no explicit pointers Java eliminates value (i.e., stack-allocated) objects--all objects are allocated off the heap.