Skip to main content

Posts

Showing posts with the label Java 8

Hey! Do you know Interface can implement method?

In Java 8 , among a lot of rich features, one of the feature you should know about is related to Interface, you can implement method by using keyword: default. This is more easier when you think about multi-inheritance.

JavaScript on JVM, Code Right Away on Your Java App

In Java 8, Nashorn has been embedded into the new JVM. Nashorn 's goal is to implement a lightweight high-performance JavaScript runtime in Java with a native JVM. This Project intends to enable Java developers embedding of JavaScript in Java applications via JSR-223 and to develop free standing JavaScript applications using the jrunscript command-line tool. Find-out around it! Wiki Blog about Nashorn  : Where Oracle introduce how-nashorn-work

Java 1.8 (JDK8): What's new?

We have now Java 1.8, let's read some well explain articles. Here are some I have extracted. Interesting Feature Here are the new Java 1.8 features : Lambda expressions Remove the Permanent Generation Small VM Parallel Array Sorting Bulk Data Operations for Collections Define a standard API for Base64 encoding and decoding New Date & Time API Provide stronger Password-Based-Encryption (PBE) algorithm implementations in the SunJCE provider Here is the full list of the features of Java 1.8 . Performance According to the article shows that Java 1.8 performance is similar to Java 1.7. Here are the results: Java 1.6 Java 1.7 Java 1.8 Test 1 3564ms 3653ms 3614ms Test 2 27265ms 28773ms 28326ms Test 3 6220ms 6579ms 6231ms Test 4 408ms 428ms 423ms Test 4 (parallelSort) 193ms Read more: http://ttux.net/post/java-8-new-features-release-performance-code/ https://vaadin.com/blog/-/blogs/no-need-to-wait-java-8-it-s-great