Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.
Member variables of the outer instance can never be referred to using only the variable name within the inner instance.
More than one inner instance can be associated with the same outer instance.
All variables from the outer instance that should be accessible in the inner instance must be declared final.
A class that is declared final cannot have any inner classes.
第1题:
The Outer.1Q tag represents customer VLAN ID and inner.1Q tag represents Provider VLAN?()
第2题:
Which two statements are true?()
第3题:
以下程序的调试结果为?
public class Outer{
public String name = "Outer";
public static void main(String argv[]){
Inner i = new Inner();
i.showName();
}
private class Inner{
String name =new String("Inner");
void showName(){
System.out.println(name);
}
}
}
A.输出结果 Outer
B.输出结果 Inner
C.编译错误,因Inner类定义为私有访问
D.在创建Inner类实例的行出现编译错误
第4题:
package foo; public class Outer ( public static class Inner ( ) ) Which statement is true? ()
第5题:
Which thefollowingstatements about static inner classes is true?()
第6题:
1. public class Outer{ 2. public void someOuterMethod() { 3. // Line 3 4. } 5. public class Inner{} 6. public static void main( String[]argv ) { 7. Outer o = new Outer(); 8. // Line 8 9. } 10. } Which instantiates an instance of Inner?()
第7题:
package foo; public class Outer { public static class Inner { } } Which statement is true?()
第8题:
Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?()
第9题:
下列连接中能自动删除重复的列是()。
第10题:
Which statement about static inner classes is true? ()