Java Language Specification Third Edition ========================================= 1 Introduction 1.1 Example Programs 1.2 Notation 1.3 Relationship to Predefined Classes and Interfaces 1.4 References 2 Grammars 2.1 Context-Free Grammars 2.2 The Le
2、Anonymous Inner Class (匿名内部类) 是否可以extends(继承)其它类,是否可以implements(实现)interface(接口) 答:匿名的内部类是没有名字的内部类。不能extends(继承) 其它类,但一个内部类可以作为一个接口,由另一个内部类实现 3、Static Nested Class 和 Inner Class的不同 答:Nested Class (一般是C++的说法),Inner Class (一般是JAVA的说法)。Java内部类与C++嵌套类
JAVA断言技术详解,1、What will happen when you attempt to compile and run the following code? (Assume that the code is compiled and run with assertions enabled) 1. public class AssertTest 2. { 3. public static void main(String args[]) 4. { 5. int i = 10; 6.