On 03/04/17 13:05, Dave Cramer wrote:
Not a comprehensive or ordered list, but a few reasons:
- JDK comes with Base64 and cryptographic functions like PBKDF2 that are needed for SCRAM. In Java6 you either implement yourself or pull external dependencies.
- You can write conciser code (which improves significantly readability):
* Lambas: anonymous classes. Callback-heavy code turns becomes readable.
* Streams: unnecessary for loops and other goodies.
* Optional: unnecessary ifs.
* Since Java7: try-with-resources, 10_000 vs 10000 etc.
- Reading Javadoc doesn't hurt my eyes ^_^
- Time API, CompletableFuture.
- Default and static methods in interfaces!
Álvaro
--
Álvaro Hernández Tortosa
-----------
<8K>data