Tag

Method Invocation

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Nov 5, 2020 · Fundamentals

Understanding Java Virtual Machine Stack Frames and Method Invocation

This article explains the JVM's stack‑frame structure, local variable tables, operand stacks, dynamic linking, and method return addresses, then demonstrates method call execution with sample Java code and bytecode, and analyzes how the JVM resolves overloaded and overridden methods through static and dynamic dispatch.

BytecodeJVMJava
0 likes · 21 min read
Understanding Java Virtual Machine Stack Frames and Method Invocation
macrozheng
macrozheng
Nov 19, 2019 · Backend Development

Why Java Reflection Is Slow and How It Works Under the Hood

This article explains the internal workings of Java reflection, from obtaining Method objects via getMethod and getDeclaredMethod to the invoke process, and details why reflection incurs significant performance overhead due to argument boxing, visibility checks, parameter validation, lack of inlining, and JIT optimization limits.

JDKJITJava
0 likes · 24 min read
Why Java Reflection Is Slow and How It Works Under the Hood
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 27, 2018 · Fundamentals

Understanding Method Invocation in Java Bytecode

The article explains how Java bytecode implements method invocation by extracting a calculation into a static method, detailing the use of the invokestatic instruction, operand stack handling, constant pool references, and subsequent bytecode operations such as i2d, Math.pow, dadd, Math.sqrt, and type conversions.

BytecodeJVMJava
0 likes · 4 min read
Understanding Method Invocation in Java Bytecode