测试父类子类静态代码块,普通代码块,构造方法的执行顺序 public class A { static { System.out.println("父类静态代码块"); } public A(){ System.out.println("父类构造方法"); } { System.out.println("......
文章浏览阅读1.1k次。scala代码示例Scala Collections are the containers that hold sequenced linear set of items like List, Set, Tuple, Option, Map etc. Collections may be strict or lazy. The memory is not allocated until they ..._scala代码阅读...