ProgrammingMethodology
来源:互联网 发布:打开淘宝客户端 编辑:程序博客网 时间:2024/06/05 20:12
Lecture 14 Memroy(RAM)
bit
0 or 1
The bit (a portmanteau(mix) of binary digit(number)) is a basic unit of information used in computing and digital communications.
- it can be used to express two state.
byte
8 bits
0~255
* it feels like something about download!
word(integer):
4 bytes
transfer
K Kilo 1024 bytes
M Meg 1024 K
G Gig 1024 M
Hexadecimal(16)
2B
- Adress or Location for Memory
- Static variables/constant and it`s special; used to refer them in the memory.
- Dynamic variables for instance:
Oval o = new Oval();
and its in the HEAP. (a place to store clothes) and when you don`t want to wear it, garbage collection works. - Local variables/parameters and it`s in the Stack
Memory Allocation
reference is in the stack
while thenew Object()
is in the heap
阅读全文
0 0
- ProgrammingMethodology
- Round 6 F
- mysql时间格式化,按时间段查询的MySQL语句
- Android程序签名详解、打包,分别使用keytool工具和Android Studio生成数字证书
- 广度优先搜索与深度优先搜索的 java 实现
- XML布局View转换成Bitmap
- ProgrammingMethodology
- 学习SVM(五)理解线性SVM的松弛因子
- 数据库隔离级别
- 有关于simulink无法打开slx:错误使用open(line 162) no such file or directory
- 水平居中
- 蘑菇街2016招聘笔试(最大间隔)
- GET和POST区别
- 前端表单验证常用的15个JS正则表达式
- 装饰者模式(Decorator Pattern)——给爱用继承的人一个全新的设计眼界