A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Differnce between array declaration
Joined: Oct 30, 2007
Aug 21, 2008 11:42:00
What is the basic difference between the below(1),(2)declarations?
Joined: Oct 02, 2003
Aug 21, 2008 11:58:00
the first one is perferred by most people, but otherwise, there isn't a difference.
Never ascribe to malice that which can be adequately explained by stupidity.
Joined: Oct 13, 2005
Aug 21, 2008 12:12:00
According to somewhere on the Sun site
is preferred because it makes it clear that the type of the variable is an array.
I agree. Here's the link:
subject: Differnce between array declaration
5 Golden Rules of widening, boxing & varargs
Subtle Array question
Supressing nulls in jsp
Local Inner Class
Kathy / Bert static final variables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013