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