如下两个源程序文件,分别编译后,运行Example.class文件,运行结果为______。

AB.java文件代码如下; package test; public class AB { int a=60; public void show() { System.out.println(”a=”+a); } Example.java文件代码如下: import test.AB; class Example { public static void main(String args[]) { AB bj=new AB(); obj.show(); } }

时间:2023-10-02 13:10:41

相似题目