Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Features new in Java 7
Does Java 7 introduces a better way to do 'getter/setter'
Joined: Apr 09, 2012
Jul 31, 2012 12:03:49
I feel the 'getter and setter' in current Java is cumbersome, and other language already has better way to handle that, Does Java 7 has new feature for that? Thanks
Joined: Jun 24, 2003
Jul 31, 2012 12:39:07
In short no, the properties style syntax that you'll find in Groovy or C# was not accepted for Java 7 (or 8 for that matter). Not necessarily a bad thing mind you (think about how it changes default access behaviour / programming idioms) :-)
Cheers, Martijn -
The Well-Grounded Java Developer book!
I agree. Here's the link:
- it saves me about five hours per week
subject: Does Java 7 introduces a better way to do 'getter/setter'
Doubt in Java Beans
HashMap bean with generic type parameters
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013