Hi senthil Kumar
  See senthil Struts class exact to any other java class. All class
level variables are takes default values. So not only in struts all java
class in the following initializes are same.
long productId;
long productId = 0;
Sting abc;
Sting abc = null

-----Original Message-----
From: senthil Kumar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 20, 2005 3:14 PM
To: user@struts.apache.org
Subject: Struts how initialises the value

Hi all.,


long productId;
long productId = 0;


Sting abc;
Sting abc = null


In struts, how the above satements are differ?.
is it compulsary to initialise the  value?. 
What are all the advantage to initialise the value?.



Regs.,
Senthil

This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in
error, please contact the sender by reply e-mail and destroy all copies
of the original message. Please do not copy it for any purpose or
disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights
Reserved



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to