• 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

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: 3285
13
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.
 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic