Java 8: Release and Features

Mar 20th, 2014

Java 8: Release and Features

Finally, Java 8 arrives on March 18, 2014. This release has been announced at EclipseCon 2014. It is the first major release in Java after two years of time. Java 8 comes with lot of new features which are new to the Java programming itself.

From today you can download Java 8 and use it in your project. We already predicted the Java 8 release in our previous blog: JAVA: STORIES 2013

Some of the notable improvements and features in Java 8 are listed below:

Lambdas Expressions

Provide a means to pass functions as data. With implicit casting to Single Abstract Method types (such as Runnable) it will dramatically simplify code that needs to pass filters and other predicates as data. (Note that the reason they are called lambdas is that Java has had closures in the form of inner classes since Java 1.1; what some incorrectly refer to as closures are really talking lambdas.) An example of a lambda is x -> x +1.

Stream API

Classes in the new java.util.stream package provide a Stream API to support functional-style operations on streams of elements. The Stream API is integrated into the Collections API, which enables bulk operations on collections, such as sequential or parallel map-reduce transformations.

Extension Methods or Defender Methods

We all are aware of the fact that the interfaces don’t contain any implementation for the methods. To provide support for new APIs which support the use of closures and also which can run on Multi core platforms there has to be some way to add these APIs to existing classes.

For example, methods like for Each, map, reduce, filter which act on a collection can be added to the Collection class directly or create a new interface and let all the collection API implement them or leave it to the user of the API to implement the new interface.

The first 2 approaches would lead to breaking lots of existing code because of the lack of implementation of these new methods in the interface. The last approach is possible, but it doesn’t enhance the collection API out of the box.

The team which handles JSR-335 thought of a way to add default implementation to the interfaces, which gives an option for the implementor to override the method or to leave it as is. This way new APIs can be added to the Collection class without breaking the existing code and yet provide the full support of the closures to the existing code.

JSR 310

This section adds new Date and Time API to Java for avoiding any problems arise out of the existing java.util.Data classes.

Method References

Method references provide easy-to-read lambda expressions for methods that already have a name.

Other Changes

  • Removal of PermGen
  • JDK 8 includes Java Mission Control 5.3
  • Default Methods in the Java Programming Language are supported by the byte code instructions for method invocation.
  • Classes and interfaces have been added to the java.util.concurrent package.
  • JDBC 4.2 introduces new features.
  • Nashorn Javascript Engine
  • Repeating Annotations provide the ability to apply the same annotation type more than once to the same declaration or type use.

Apart from the above changes, there are ton of new features and changes introduced as part of the Java 8 release.

Comments are closed.

Let's Discuss Your Project

Get free consultation and let us know your project idea to turn
it into an amazing digital product.

Let’s talk

NEWS & BLOG

Related Blogs

Why should you hire React Native developers for your project?

Hire Developer Jun 19th, 2023

Why should you hire React Native developers for your pr...

Read more
Explorando A 1xbet: Uma Análise Detalhada Da Plataforma Sobre Apostas Online

Hire Developer Feb 24th, 2023

Explorando A 1xbet: Uma Análise Detalhada Da Plataform...

Read more
Explorando A 1xbet: Uma Análise Detalhada Da Plataforma Sobre Apostas Online

Hire Developer Feb 23rd, 2023

Explorando A 1xbet: Uma Análise Detalhada Da Plataform...

Read more

INQUIRY

Let's get in touch

UNITED STATES

31236 Meadowview Square,
Delmar, DE 19940, USA

Sales: +1 667 771 6758

UNITED KINGDOM

13 Layton Road, Hounslow,
London, TW3 1YJ

Sales: +44 7404 607567

INDIA

2nd Floor, Sun Avenue One, Bhudarpura, Ayojan Nagar, Nr. Shyamal Cross Road, Ahmedabad, Gujarat-380006

Sales: +91 635-261-6164

For Project Inquiries

biolah

depo 25 bonus 25 to 5x

depo 25 bonus 25

depo 25 bonus 25

mndrmndr.com

bonusdeposit.net

https://www.greentourstanzania.com/wp-includes/customize/

https://temp1.novotest.biz/id/

depo 25 bonus 25

https://sumberjo-blitar.desa.id/images

https://sumberjo-blitar.desa.id/data

depo 25 bonus 25 to 5x

depo 25 bonus 25

https://www.greentourstanzania.com/wp-includes/js/product/

https://smpabbs.sch.id/gacor/100/

https://smpabbs.sch.id/gacor/bonus/

deposit 25 bonus 25

depo 25 bonus 25

bonus new member 100

https://ppdb.smk-kosgoro.sch.id/data/depo 25 bonus 25https://jesus.nouvellevie.com/wp-includes/images/Getoko.iddepo 25 bonus 25https://bonus-baru.s3.ap-southeast-1.amazonaws.com/link-daftar-slot-gacor.htmlhttps://bonus-baru.s3.ap-southeast-1.amazonaws.com/scatter-pink-paling-gacor.htmlhttps://worldlisteningproject.org/wp-includes/depo25bonus25/bonus new member 100depo 25 bonus 25