Thanks Gare,
    I want to check the second option for referencing more than one value.It
will take the last referenced value for display.

    String string_Name = "Sachin";
  string_Name = "Tendulkar";
  System.out.println(string_Name); ---->Result is : Tendulkar

So i just testing it's behaviour.

Thanks

Varna.





----- Original Message -----
From: "Gare, Trefor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 11:57 AM
Subject: Re: Urgent !!!!!!!! Please help me


> Not quite sure what you're after but the second will allow the JVM to use
a
> single String object for multiple references (if there are any other
strings
> "Tendulkar").  The first will always create a new String object.  In that
> way the second is a more economical way of creating/referencing the
object.
> Is that a help?
>
>
>
> Tref Gare
> Web Developer MCSD
> eCommerce Group
> Phone:  (03) 9221 4106
> Mobile: 0409 556 478
> Fax:    (03) 9941 4295
>
> > -----Original Message-----
> > From: Ravindra [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday,18 December 2001 5:24
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: Urgent !!!!!!!! Please help me
> >
> > Hi All,
> >
> > String string_Name = new String("Tendulkar");
> >
> > String string_Name = "Tendulkar";
> >
> > In Above two statements which is compatible(Speed,Instantiating and
other
> > parameters.) for java compiler.
> >
> > thanks
> >
> > Varna.
> >
> >
==========================================================================
> > =
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to