当前位置:网站首页>int a = 1存放在哪
int a = 1存放在哪
2022-04-23 06:25:00 【小白蛋挞】
int a = 1;存放在哪
a作为类的成员变量存放在方法区,1保存在堆。
作为局部变量这个时候a同样存在方法区的代码中,运行时a存在该方法对应的栈帧的局部变量表中,而该变量表中a的值为1,所以1存在栈内存中。
astore:将一个引用类型数据保存到本地变量表中
istore:int类型
iconst:取值-1~5的整数压入栈
bipush:-128~127
istore:从操作数栈放到局部变量表中
iload:从局部变量表复制到操作数栈

public int demo() {
// int a = 100;
// int b = 2;
// int c = 3;
// return (a + b) * c;
//
// }
javac .\xxx.java
javap -v -p -l xxx





版权声明
本文为[小白蛋挞]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_61547956/article/details/124218541
边栏推荐
猜你喜欢
随机推荐
图论入门——建图
[CF 1425D]Danger of Mad Snakes(组合计数+容斥)
关于素数的不到100个秘密
数论之拓展欧几里得
SAP PI/PO登录使用及基本功能简介
Use of typescript dictionary
C语言的指针符号到底靠近变量类型还是变量名?
[hdu6868]Absolute Math(推式子+莫比乌斯反演)
[牛客挑战赛47]C.条件 (bitset加速floyd)
BTree、B+Tree和HASH索引
Mysql的存储引擎
青龙面板拉库命令更新【2022/4/20】收藏不走丢
Mysql隔离级别
How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)
两个线程交互打印奇偶数字
Object. Create() principle, object Create() specification, handwritten object create(),Object. Create() usage
Design optimization of MySQL database
公共依赖模块common的处理
2022.3.14 阿里笔试
SAP PI / Po rfc2restful Publishing RFC interface as restful examples (proxy indirect)









