Simple Java program that allocated a chunk of memory and keeps it active