Some small knowledge of the j2se
1.String s=new String(); string is a type of reference variable.All of the types are reference style except the 8 basic types. eg.int,long....
2.int[] num=new int[5]; num.length represent the number of the elements but not the size of the memory.
3.And the symbol "new" create a reference variable in the leap but not the stack.
4.Static type can't create any object in the memory.
5.Java is a language which send arguments are value.
1.String s=new String(); string is a type of reference variable.All of the types are reference style except the 8 basic types. eg.int,long....
2.int[] num=new int[5]; num.length represent the number of the elements but not the size of the memory.
3.And the symbol "new" create a reference variable in the leap but not the stack.
4.Static type can't create any object in the memory.
5.Java is a language which send arguments are value.
0 Comments:
Post a Comment
<< Home