todo_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 并行排序,有个方法

上一篇:Spring Boot 发送 5 种邮件


下一篇:环形链表和约瑟夫问题_韩顺平听课笔记