|
Post by account_disabled on Apr 17, 2024 5:15:20 GMT
器生成的用于唯一标识每个函数的修改名称的一部分。参数计数参数类型和参数序列是用于为每个函数生成唯一的修改名称的参数。根据这些唯一的名称即使名称相同重载编译器也可以了解要调用哪个函数。 中私有方法可以被重写吗? 不可以私有方法不能被重写因为它对任何其他类都是不可见的。 什么是空白最终变量? 中的 变量只能接收一次值您可以在声明中或之后赋值。 最终 我 错误因为 是最终的。 中的空 变量是在声明期间未初始化的 变量。这是最终空白变量的一个简单示例。 一个简单的空白最终示例 最终整数我我 中 和 有什么区别? 不同步。它不是线程安全的如果没有适当的同步代码就 台湾 手机号码 无法共享而 是同步的且线程安全的。 允许一个空键和多个空值而 不允许任何键或空值。 对象在内存中是如何存储的? 在 中所有对象都是在堆上动态分配的。当您仅声明类变量时仅创建引用并且不会为该对象分配内存。要为对象分配内存请使用 。所以对象总是在 上分配内存。 分配了多少种类型的内存区域? 类方法区类区存储每个类的结构例如运行时常量池字段方。 法数据和方法代码。 堆是为对象分配内存的运行时数据区域 堆栈 堆栈存储帧。它包含局部变量和部分结果并在方法调用和返回中发挥作用。每个线程都有一个私有的 堆栈与该线程同时创建。 程序计数器寄存器 寄存器程序计数器包含正在执行的 虚拟机指令的地址。 本机方法堆栈包含应用程序中使用的所有本机方法。 编译器有什么用? 即时 编译器用于提高性能。 同时编译具有相似功能的字节码部分从而减少编译所需的时间。这里的术语 编译器 是指从 虚拟机 的指令集到特定 的指令集的翻译器。
|
|