Why java bytecode from a class have come code for new staic inner class appear jvm instruction ACONST_NULL
问题 I try to new a inner staic class, But I find that bytecode appear the jvm instruction ACONST_NULL bwteen NEW , DUP and INVOKE_SPECIAL , But I know about a class new is NEW DUP INVOKE_SPECIAL package com.hoho.api; /** * @author linuxea */ public class Main { private static class InnerMain { // no field } public static void main(String[] args) { InnerMain innerMain = new InnerMain(); } } // class version 52.0 (52) // access flags 0x21 public class com/hoho/api/Main { // compiled from: Main.java