Fine.
- Original Message -
From: "raghavendra" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Wednesday, July 20, 2005 4:10 PM
Subject: RE: Struts how initialises the value
> Hi senthil Kumar
> See senthil Struts class exact
-
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
Hi, Senthil.
if you don't set initial values for fields you declare, they are
initialized as mentioned
in java specification. you can check at
http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#4.12.5
so,
long productId;
long productId = 0;
are the same.
String abc;
Strin
It is no way different to struts
Primitive types are always initilxed to its defaults...
senthil Kumar wrote:
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
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 t
5 matches
Mail list logo