当前位置:网站首页>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
边栏推荐
- 2.限定查询
- 王者荣耀-unity学习之旅
- How to judge whether a point is within a polygon (including complex polygons or a large number of polygons)
- Two threads print odd and even numbers interactively
- 【TED系列】一个习惯是如何改变我的一生
- What is a closure?
- Processing of common dependency module
- 配置npm
- [hdu6833]A Very Easy Math Problem(莫比乌斯反演)
- 13. User and authority management
猜你喜欢

h5本地存储数据sessionStorage、localStorage

SAP PI/PO rfc2Soap 发布rfc接口为ws示例

Date对象(js内置对象)

Redis connection error err auth < password > called without any password configured for the default user
![[Educational Codeforces Round 80] 解题报告](/img/54/2fd298ddce3cd3e28a8fe42b3b8a42.png)
[Educational Codeforces Round 80] 解题报告

Visualization Road (IX) detailed explanation of arrow class

BTREE, B + tree and hash index

数论分块(整除分块)

H5 case development

简单易懂的子集dp
随机推荐
[Educational Codeforces Round 80] 解题报告
MySQL storage engine
Use of typescript dictionary
Common DOS commands
学会使用搜索引擎
常用的DOS命令
redis连接出错 ERR AUTH <password> called without any password configured for the default user.
SAP PI/PO Soap2Proxy 消费外部ws示例
4. Multi table query
配置npm
P2257 YY的GCD(莫比乌斯反演)
数论之阶与原根讲解
MySQL index
菜菜的刷题日记 | 蓝桥杯 — 十六进制转八进制(纯手撕版)附进制转换笔记
Design optimization of MySQL database
Visualization Road (IX) detailed explanation of arrow class
图论入门——建图
数论之拓展欧几里得
Dirichlet 前缀和(数论优化式子复杂度利器)
[Ted series] how does a habit change my life