当前位置:网站首页>JVM方法调用
JVM方法调用
2022-07-24 18:41:00 【InfoQ】
Java识别重载方法
- 在不考虑对基本类型自动拆装箱,以及可变长参数的情况下,选取重载方法。
- 如果1没有找到,那么在允许自动拆装箱,但不允许可变长参数的情况下,选取重载方法。
- 如果2也没有找到,那么在允许自动拆装箱以及可变长参数的情况下,选取重载方法
- 如果Java同时找到多个适配的方法,那么它会选择其中最为贴切的一个,而决定贴切程度的关键就是形式参数类型的继承关系。
JVM识别方法
- invokestatic:用于调用静态方法
- invokespecial:用于调用私有实例方法、构造器、以及使用super关键字调用ß私有实例方法或构造器,和所实现接口的默认方法
- invokevirtual:用于调用非私有实例方法
- invokeinterface:用于调用接口方法
- invokedynamic:用于调用动态方法
虚方法调用过程
边栏推荐
- Make C #
- Go Xiaobai implements a simple go mock server
- 3. Variable declaration promotion?
- 无关的表进行关联查询及null=null条件
- Ionic4 learning notes 7 -- UI component 1 (no practice, direct excerpt)
- 树链剖分板子
- The difference between KIB and MIB and KB and MB
- Cryptography knowledge - Introduction to encryption -1
- Sword finger offer 21. adjust the array order so that odd numbers precede even numbers
- 2020-2021 new technology lecture course
猜你喜欢

Create parent-child projects in clion (cmake tool) and introduce the method of third-party libraries

Ionic4 learning notes 10 rotation map of an East Project

Eternal Blue ms17-010exp reappears

Get familiar with pytoch and pytoch environment configuration

Sword finger offer 21. adjust the array order so that odd numbers precede even numbers

微信小程序逆向

5. Reference type and value type as function parameters?

Data analysis of network security competition of national vocational college skills competition digital forensics-a

Ionic4 learning notes 9 -- an east project 01

Go Xiaobai implements a simple go mock server
随机推荐
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
理解corners_align,两种看待像素的视角
缺失值处理
04-分布式资源管理系统YARN
We have to understand the four scopes: application, session, request and page
Segment tree merge board
Introduction to nipple music theory and personal perception
1. Typeof view variable type?
为什么梯度是函数变化最快的方向
投资的新阶段
6. How to add an array in Es5?
MySQL - bufferpool related information
[Tkinter] common components (I)
Leetcode memory deep search / dynamic planning V2
Encapsulate function basedata.js
Data analysis of network security competition of national vocational college skills competition digital forensics-a
The problem that files cannot be uploaded to the server using TFTP is solved
Vsftpd2.3.4-端口渗透 6200 irc_3281_backdoor
Calling startActivity() from outside of an Activity context requires the FLAG_ ACTIVITY_ NEW_ TASK flag
使用 tftp 无法向服务器上传文件问题解决