Hi Prabu In fact, why do you need to create a new object without using "new"? Of course, there are various solutions - as a nice exercise for all of us, but what is the real actual need?
Regards, mihai bilal malik a écrit : > no that is short cut.But I guess behind the scenes new String() is called. > > --- On *Fri, 27/11/09, Kamal Chandana Mettananda /<lka...@gmail.com>/* > wrote: > > > From: Kamal Chandana Mettananda <lka...@gmail.com> > Subject: Re: [java ee programming] > To: "prabu504" <prabu...@gmail.com> > Cc: "java-ee-j2ee-programming-with-passion" > <java-ee-j2ee-programming-with-passion@googlegroups.com> > Date: Friday, 27 November, 2009, 5:53 AM > > > Just to add one more to this list: > > String s = "my text"; > > This also creates a new object (without new keyword). > > --------------------------------------- > > http://lkamal.blogspot.com <http://lkamal.blogspot.com/> > > > > > > On Fri, Nov 27, 2009 at 9:04 AM, d bhagavan > <adityabhagava...@yahoo.com > <http://in.mc954.mail.yahoo.com/mc/compose?to=adityabhagava...@yahoo.com>> > wrote: > > Cloning also one of the methods for creating new objects.. > > Aditya. > > --- On *Thu, 26/11/09, Lsn.Murthy /<lsn.mur...@gameloft.com > > <http://in.mc954.mail.yahoo.com/mc/compose?to=lsn.mur...@gameloft.com>>/* > wrote: > > > From: Lsn.Murthy <lsn.mur...@gameloft.com > > <http://in.mc954.mail.yahoo.com/mc/compose?to=lsn.mur...@gameloft.com>> > Subject: Re: [java ee programming] > To: prabu...@gmail.com > <http://in.mc954.mail.yahoo.com/mc/compose?to=prabu...@gmail.com> > Cc: java-ee-j2ee-programming-with-passion@googlegroups.com > > <http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> > Date: Thursday, 26 November, 2009, 1:33 PM > > Using Factory classes. > > prabu vaikundanarayanan wrote: > > hi every one,, > > > > > > could any one please tell me how to create > objects with out > > using new keyword > > > > > > thanks in advance > > > > > > Regards > > Prabu > > > > > > -- > You received this message because you are subscribed to > the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > > <http://mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > <http://mc/compose?to=unsubscr...@googlegroups.com> > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > > > > ------------------------------------------------------------------------ > The INTERNET now has a personality. YOURS! See your Yahoo! > Homepage > <http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/>. -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > > <http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-pass...@googlegroups.com> > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > > <http://in.mc954.mail.yahoo.com/mc/compose?to=java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > > > -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > > > ------------------------------------------------------------------------ > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage > <http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/>. -- > You received this message because you are subscribed to the Google > Groups "Java EE (J2EE) Programming with Passion!" group. > To post to this group, send email to > java-ee-j2ee-programming-with-passion@googlegroups.com > To unsubscribe from this group, send email to > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en > -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en