• Post Reply Bookmark Topic Watch Topic
  • New Topic

Other than lambdas?

 
Thad Humphries
Greenhorn
Posts: 26
Google Web Toolkit Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lambdas have drawn the most attention in Java 8. There's also a new Javascript engine. What else is in Java 8 that you consider significant.
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thad Humphries wrote:Lambdas have drawn the most attention in Java 8. . . .
Really? What about Streams? Or (maybe it's not new) JavaFX?
 
Cay Horstmann
author
Ranch Hand
Posts: 172
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Certainly streams are very important, and they are the most compelling application of lambdas to date.

There is a very nice date and time library that is a huge improvement over Date/GregorianCalendar.

There are a number of nice improvements in the concurrency libraries--atomic values that work well under high contention, parallel arrays, maps with new methods for updating values atomically, and a "completable futures" framework that manages "callback hell".

The Nashorn JavaScript engine is nice if you need scripting.

JavaFX has gotten an overhaul. Of course, that's only relevant if you want to write client-side GUIs.

As a minor application of lambdas, you can now easily write tie-breaking comparators.



There are some improvements in annotations. For example, it is now possible to have repeated annotations, so you can write



instead of the previous, rather horrid,



Localization has been cleaned up quite a bit with support for BCP 47.

There is a convenient method for joining strings with a delimiter:



There is a standard Base64 encoder. (It used to be in the sun.misc package.)

There are a couple dozen other minor features--read all about them in "Java SE 8 for the Really Impatient"

Cheers,

Cay


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!