If any super class of instance to be de-serialized in non-serializable and also does not have a default constructor then the ‘**NotSerializableException**‘ is thrown by JVM.
Java SE 7 引入了`java.nio.file`软件包及其相关软件包`java.nio.file.attribute`,为文件 I/O 和访问默认文件系统提供了全面的支持。 路径类是一个很大的补充,它允许您以统一的方式表示操作系统中的任何路径。 新的 API 是对旧 API 的补充,并提供了一些有用的方法检查,删除,复制和移动文件。 您也可以像在 Linux 中那样创建符号链接和硬链接。 JDK 7 新文件 API 还能够使用通配符/正则表达式搜索文件。 您还将获得支持以查看目录中的更改。
...
...
@@ -74,9 +74,9 @@ Java SE 7 引入了`java.nio.file`软件包及其相关软件包`java.nio.file.a
Java 7 在异常处理方面也带来了一些不错的增强。 这些可以大致分为两个功能:
## [受抑制的异常](//howtodoinjava.com/java-7/suppressed-exceptions-in-java-7/ "Suppressed exceptions in java 7")
Remember: If a catch block handles more than one exception type, then the catch parameter is implicitly final. In this example, the catch parameter ex is final and therefore you cannot assign any values to it within the catch block.
## [switch 语句](//howtodoinjava.com/java-7/string-class-is-supported-in-switch-statement-in-java-7/ "String class is supported in switch statement in java 7")中的字符串类支持
@@ -260,17 +260,17 @@ Result solve(Problem problem) {
}
```
## [使用 WatchService](//howtodoinjava.com/java-7/auto-reload-of-configuration-when-any-change-happen/ "Auto reload of configuration when any change happen") 自动重新加载