Do note that in java default values for a variable (not a method variable)
are only provided by the jvm if they are not provided by the programmer /
developer.
Do search the list archives for an explanation on the difference between
declarations <%! .... %> and scriptlets <%.....%>.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: Jay P <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 02, 2001 10:20 PM
Subject: Initialization


> Hi,
>    I know that when you have the following
>
> public class foo {
>    String foo_string;
>    foo() {
>    }
> }
> foo_string gets initialized to null.
>
> However what if you have the following:
> public class foo {
>    String foo_string = null;
>    foo() {
>    }
> }
>
> Here does the jvm initialize foo_string to null twice?
>
>
> i want to know because i have some of these inside a
> <%! %>   tag
>
> Thanks for your help
>
> -Jay
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to