【JVM学习系列】JVM特性

6 篇文章 0 订阅

这里主要对JVM作为虚拟机器与真实机器在架构实现方面的差异进行一个比较,以便形成新的认知:

  • Stack-based virtual machine

    The most popular computer architectures such as Intel x86 Architecture and ARM Architecture run based on a register. However, JVM runs based on a stack.

  • Symbolic reference

    All types (class and interface) except for primitive data types are referred to through symbolic reference, instead of through explicit memory address-based reference.

  • Garbage collection

    A class instance is explicitly created by the user code and automatically destroyed by garbage collection.
    Guarantees platform independence by clearly defining the primitive data type: A traditional language such as C/C++ has different int type size according to the platform. The JVM clearly defines the primitive data type to maintain its compatibility and guarantee platform independence.

  • Network byte order

    The Java class file uses the network byte order. To maintain platform independence between the little endian used by Intel x86 Architecture and the big endian used by the RISC Series Architecture, a fixed byte order must be kept. Therefore, JVM uses the network byte order, which is used for network transfer. The network byte order is the big endian.

参考

  1. https://dzone.com/articles/understanding-jvm-internals
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值