done infosys_不告你答案的面试

1、不用spring boot的选择

name, age, dept

list

 

2、
lambda排序
List.sort(employee, (a, b) -> ((a.name.compareTo(b.name)) && (a.age.compareTo(b.age))));


class Example {
//include the parent class
private Helper helper;

public synchronized Helper getHelper() {
//create one object if null
if (helper == null) {
helper = new Helper();
}

return helper;
}
}

3、怎么让日期彻底immutable
final class ImmutableClass {
final String string;
private final Date date;

}

4、Java 8 并行排序,有个方法

 

done infosys_不告你答案的面试

上一篇:套接字 - 面向连接TCP和无连接UDP


下一篇:题解 CF895C Square Subsets