Image source: http://image.slidesharecdn.com/jdk8-161227035951/95/new-features-in-jdk8-5-638.jpg?cb=1482811223
2.Method references furnish easy-to-analyze lambda expressions for strategies that already have a name. Constructor References are the equivalent types of illustration for constructors.
three.Default strategies allow new performance to be introduced to the interfaces of libraries and make explicit binary compatibility with code written for older versions of the ones interfaces.
four.With default strategies in Java eight, one-of-a-kind inheritance of conduct is now feasible in Java, and it's very important to recognise the fight latitude approaches which unravel Diamond Problem and other fight conditions.
Java 8s new package java.util.perform adds many important really apt interfaces for the so much fundamental conditions. The four so much very important really apt interface among them are Predicate, Consumer, Function and Supplier.
Repeating Annotations furnish the performance to observe a equivalent annotation type greater than as quickly as to a equivalent declaration or type use.
1.New java.util.stream package adds a new Streams API
to assistance really apt-fashion operations on streams of concerns. The Stream API is incorporated into the Collections API.
2.Java 8s new Collector interface and its one-of-a-kind predefined implementations furnish an competent approach to terminate the Stream operations and assemble the bring about a collection.
three. A new Date-Time package java.time with a new comprehensive set of date and time utilities.
four.Java 8s new enhanced strategies in Collections API are blanketed in a sequence of 4 tutorials Iterable.forEach() & Iterator.dispose of(), Collection.removeIf(), List.kind() & List.replaceAll(), and new multi-value map strategies.
5.Java eight has announced new internal iterators in reaction to declarative really apt programming fashion.
6.Comparator interface has exceeded through a limiteless upgrade in Java eight with new strategies leveraging Java 8s really apt programming qualities, comparator chaining, in-constructed null dealing with, and plenty of greater such qualities. Java eight Comparator academic covers these new qualities extensive.
7.Nashorn Javascript Engine enhanced to furnish a edition of javascript which would run throughout the JVM
eight.Standard Encoding and Decoding Base64,Parallel Array Sorting and Unsigned Arithematic Support.
9.JDBC four.2 with new qualities and specifically the JDBC-ODBC bridge has been eliminated.
10.Concurrency connected very important adjustments which embody
oChanges to ConcurrentHashMap to assistance aggregate operations in reaction to the newly introduced streams facility and lambda expression.
oAddition of differing patterns to the java.util.concurrent.atomic package to assistance scalable updatable variables.
oSupport for a vintage pool in ForkJoinPool.
oNew StampedLock classification to to furnish an performance-installed assuredly lock with three modes for controlling analyze/write access
eleven.Type Annotations furnish the performance to observe an annotation anyplace a kind is used, not actual on a declaration. Used with a pluggable type gadget, this feature makes it feasible for greater important type checking of your code.
12.Improved Type Inference and Method Parameter Reflection.
13.Compact Profiles comprise predefined subsets of the Java SE platform and allow methods that do not require all the Platform to be deployed and run on small devices.
14.Improved internationalization including assistance for Unicode 6.2.0, new Calendar and Locale APIs, Adoption of Unicode CLDR Data and the java.locale.vendors System Property and Ability to Install a Custom Resource Bundle as an Extension.
15.In case you are attractive in knowing involving crucial books on Java eight then that you just could analyze the.
The Complete Java eight Comparator
Java 8s Comparator is a Functional Interface
Owing to the fact that the Comparator interface has handiest 1 precis mind set, assessment(), it automatically qualifies to be a Functional Interface
in Java eight. Nevertheless, Java eight designers have gone ahead and annotated the Comparator classification interface @FunctionalInterface to place into outcome its position as a Functional Interface. Being a really apt interface, Comparator can now be used as an challenge objective for a lambda expression or a mind set reference.
Java eight Comparators null dealing with driving nullsFirst()and nullsLast() strategies
There are stipulations where the kind key value is nullable. We ought to then pass judgement on whether we deserve to location objects with kind key as null earlier in the ordering than the objects with non-null kind key or on the finish of the list after the objects with non-null kind key. Java eight Comparators furnish nullsFirst() and nullsLast() static strategies for precisely such kind order dealing with of null valued kind keys. These strategies have the signature
static Comparator nullsFirst(Comparator