• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What's new in Java - a quick overview

 
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just finished a little side project of mine, where you can easily see what Java version (>= 5.0) has added which package, class or member: https://robtimus.github.io/whats-new-in-java/.

I started it because too often I didn't really have a full overview of what new features were added. With the more frequent Java release cycle this would become even worse. This little one-pager now solves that issue. It's generated from the latest API, so when Java 11 comes out it will be easily updated.

It has already proved its value to me, because I didn't know that:
* Java 10 has added Collectors for unmodifiable collections and maps.
* Java 9 has finally added StringBuilder support to java.util.regex.Matcher.
* Java 9 has added pipeline support to ProcessBuilder.
 
Saloon Keeper
Posts: 15490
363
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wait what? I just found out that Closeable was only added to the language in Java 5. If you had asked me, I would have sworn it was part of Java from the start.

And apparently in Java 9 they added a method to flag busy waits -___-;
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That just proves how some new features just aren't advertised as broadly as others.
 
Ranch Hand
Posts: 128
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Very helpful tool Rob. Now I can see at first glance what's new in the different versions of Java without having to dig much into documentation. I wish I could give you a cow...  
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No problem, I got enough praise already

BTW, if you watch the repository (https://github.com/robtimus/whats-new-in-java/) you will be informed by GitHub when I'll release a new version (September or October will get one, when Java 11 comes out).
 
reply
    Bookmark Topic Watch Topic
  • New Topic