Create MemAlloc.java

learn how JVM alloc mem to static and non-static vars when init