the basic concept of java

##Java Memory Type Classification

  • Register
  • Native Method field
  • Method field
  • Stack
  • Heap

    Java Basic Type , Reference Type , Packing type

There is a value transmitation in java,but sometimes transmite value and sometimes reference address.For a basic type, it transmites its value to methods and don’t affect itself value.For a reference type, it transmites its address and don’t use a key word new and this phenomenon also called as Shallow copy(if you use new to create an object ,it called as deep copy).