intftest.java

来自「kaffe Java 解释器语言,源码,Java的子集系统,开放源代码」· Java 代码 · 共 24 行

JAVA
24
字号
/* * test we don't screw up the interface <clinit> method */interface Intf {    public final String [] hw = new String[] 	{		"Hello",		"World."	};};public class IntfTest {    public static void main(String av[]) {	String a = Intf.hw[0];	System.gc();	System.out.println(a + " " + Intf.hw[1]);	System.gc();    }}/* Expected Output:Hello World.*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?