• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Cool new features in Java 7: Any caveats?

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ;-)
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One caveat that I can think of - using Diamond operators. Using Diamond operator reduces code readability.
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic