java 内存数据存储
最近在学习的过程中,越发觉得基础知识的重要性,so 恶补一下
直接上图上示例:
图一:
图二:
图三:
- String s1 = "china";
- String s2 = "china";
- String ss1= new String("china");
- String ss2 = new String("china");
- int i =1;
- int j =1;
- public static final int i1 = 1;
- public static final int j1 = 1;
- Integer it1= 127;
- Integer it2= 127;
- Integer it11= 128;
- Integer it12= 128;
相信看了图,大家就明白了在内存中对象均是如何存储的

浙公网安备 33010602011771号