题目内容
请说出下列程序的输出结果____________。该程序共产生_______个.class 文件。class RedCowForm {static class RedCow { //静态内部类是外嵌类中的一种静态数据类型void speak() {System.out.println("我是红牛");}}}class BlackCowForm {public static void main(String args[]) {RedCowForm.RedCow red =new RedCowForm.RedCow(); //如果RedCom不是静态内部类,此代码非法red.speak();}}
查看答案
搜索结果不匹配?点我反馈