Users Pricing

forum

home / developersection / forums / what is best way to declaration a variable ? follow below example?

What is best way to declaration a variable ? follow below example?

marcel ethan 2044 15 May 2013
Hi Expert! 

Example:

String one="One", two="Two", Three="Three";
(or)

String one="One";
String two="Two";
String Three="Three";

See, above e.g which one is best way in real time? what is difference both us? i am using 1st one it is save the class file memory. but all programmer use 2nd one.why there was use 2nd I did not understand?

Please give proper solution!
Thanks in advance! 

marcel ethan

Other


1 Answers