Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cool new features in Java 7: Any caveats?

 
charlsy chuks
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I like Java 7 and totally like the features its offering: Diamond Syntax, String enabled switch, try-catch with resources,
enhanced syntax for literals etc. I am just sharing a concern I have about the paradigm shift one would have to
engage in whenever the need to work on different projects at the same time arises.

Just imagine a .NET programmer that codes in C# working on a project and all of a sudden is assigned to work on a Java 7 project.
(this is likely sometime in the future ). The changes in Java 7 may not be too drastic but some of them are mind-shifting.

However, it is these changes that make Java 7 tick. I equally foresee professionals writing C# style code in Java 7 or vice versa depending on
which they spend more time with and making mistakes first few times as they violate syntax rules-again this is fun (if you don't have a deadline
breathing heavily down your neck). I guess we will eventually get used to it. Java 7 IS SO COOL!
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C# has actually had the lead on Java for the last few years in terms of its feature set. .NET developers will find things like try-with-resources to be very familiar as they already having the clause in C#. We don't anticipate any problems for our .NET friends coming across to the light side ;-)
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One caveat that I can think of - using Diamond operators. Using Diamond operator reduces code readability.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic