Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Java Cookbook: Most important changes made to Java since previous edition

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The previous edition of the book was released in 2014 and covered Java 8. The latest copy has been updated to cover Java 13 (and parts of Java 14). I'm curious to know what the author considers to be the most important changes to the Java language during these 6-year?
 
Ranch Hand
Posts: 106
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an interesting read about what you are looking for
New language features since java8 to 14
 
Marshal
Posts: 69894
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite a good tutorial
 
Sheriff
Posts: 21974
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although I already found an incorrect statement near the start.

Second, each case has its own scope.

Just for comparison, a similar piece of code would result in a compile error, because the block for a switch case is threated as a single scope and we would attempt to define temp twice.


That latter statement is not true, because of the {}. That makes the two separate blocks, and any variable declared inside such a block will not be available outside that block. For instance:

That will already compile for Java 1.4 (using OpenJDK 8 with -source 1.4 -target 1.4).
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic