内部类的类体中可以声明类变量和类方法吗?回答可以或者不可以_______。
查看答案
匿名类一定是内部类吗?回答是或者否________。
请说出下列程序的输出结果____________。class Cry {public void cry() {System.out.println("大家好");}}public class E {public static void main(String args[]) {Cry hello=new Cry() {public void cry() {System.out.println("Hello");}};hello.cry();}}
请说出下列程序的输出结果_____________,_____________。import java.io.IOException;public class E {public static void main(String args[]){try { methodA();}catch(IOException e){System.out.print("你好");return;}finally {System.out.println("thanks");}}public static void methodA() throws IOException{throw new IOException();}}