Java教程

常量池

本文主要是介绍常量池,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
package com.springboot.demo;

public class Helloword {
    public static void main(String[] args) {
        System.out.println("hellorord");
    }
}

  

 

// class version 52.0 (52)
// access flags 0x21
public class com/springboot/demo/Helloword {

  // compiled from: Helloword.java

  // access flags 0x1
  public <init>()V
   L0
    LINENUMBER 3 L0
    ALOAD 0
    INVOKESPECIAL java/lang/Object.<init> ()V
    RETURN
   L1
    LOCALVARIABLE this Lcom/springboot/demo/Helloword; L0 L1 0
    MAXSTACK = 1
    MAXLOCALS = 1

  // access flags 0x9
  public static main([Ljava/lang/String;)V
   L0
    LINENUMBER 5 L0
    GETSTATIC java/lang/System.out : Ljava/io/PrintStream;
    LDC "hellorord"
    INVOKEVIRTUAL java/io/PrintStream.println (Ljava/lang/String;)V
   L1
    LINENUMBER 6 L1
    RETURN
   L2
    LOCALVARIABLE args [Ljava/lang/String; L0 L2 0
    MAXSTACK = 2
    MAXLOCALS = 1
}

  

这篇关于常量池的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!