要点
2019-09-17发布
新特性
350: Dynamic CDS Archives:改进跨JVM的类内存共享
351: ZGC: Uncommit Unused Memory:未使用的堆内存返回给操作系统
353: Reimplement the Legacy Socket API
354: Switch Expressions (Preview)
int n = switch (type) {
case "a" -> 1;
default -> {
yield -1;
}
};
String sql = """
select * from table
where a=? and b=?
order by id
limit 10
""";
网友评论