java 小解惑

package air.air;spa



class A {it

public static void mm(){class

System.out.println("a");static

}new

}return


class B extends A {void

public static void mm(){

System.out.println("b");

}

}


public class T {

//return true

public boolean ll(){

boolean b = true;

try{

//1  

return b;

}finally{

//2

b=false;

}

}

public static void main(String ss[]){

System.out.println(new T().ll());

A a = new B();

a.mm();//a

}


}

相關文章
相關標籤/搜索