当前位置:网站首页>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
边栏推荐
- 3. Sort statement
- Redis connection error err auth < password > called without any password configured for the default user
- [LNOI2014]LCA——树链剖分——多点LCA深度和问题
- What are the total number of all courses of Mr. Tang Xiaoyang, who is very popular in CSDN (question mark)
- F-牛妹的苹果树(直径合并)
- [牛客练习赛68]牛牛的粉丝(矩阵快速幂之循环矩阵优化)
- 1. View databases and tables
- 2. Restricted query
- MySQL isolation level
- 游戏辅助脚本开发之旅
猜你喜欢
Reflection on the systematic design of Android audio and video caching mechanism
Authorization+Token+JWT
Authorization+Token+JWT
Authorization server (simple construction of authorization server)
基于可视化结构的身份证号码校验系统-树莓派实现
Discussion on arrow function of ES6
SAP pi / PO rfc2soap publishes RFC interface as WS example
‘npm‘不是内部或外部命令,也不是可运行的程序 或批处理文件
On BFC (block formatting context)
SAP ECC连接SAP PI系统配置
随机推荐
Reflection on the systematic design of Android audio and video caching mechanism
如何SQL 语句UNION实现当一个表中的一列内容为空时则取另一个表的另一列
4.多表查询
SAP DEBUG调试FOR IN、REDUCE等复杂的语句
9. Common functions
2.限定查询
菜菜的并发编程笔记 |(九)异步IO实现并发爬虫加速
8.分页查询
SAP 导出Excel文件打开显示:“xxx“的文件格式和扩展名不匹配。文件可能已损坏或不安全。除非您信任其来源,否则请勿打开。是否仍要打开它?
9.常用函数
10. Update operation
Applet newline character \ nfailure problem resolution - Daily pit stepping
Mysql持久性的实现
MVCC(多版本并发控制)
自定义时间格式(YYYY-MM-DD HH:mm:ss 星期X)
对STL容器的理解
6.聚合函数和分组统计
The difference and application of VR, AR and MR, as well as some implementation principles of AR technology
2022.3.14 阿里笔试
Mvcc (multi version concurrency control)