Modify Java memory display

To indicate memory out of bound correctly