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
Hi ,
we can create object without using new opearator.
1) Using factory methods
Ex:- NumberFormat obj=NumberFormat.getInstance();
2)Using newInstance() method
Ex:-
Class c=Class.forName("SomeClassName");
SomeClassName obj=c.newInstance();
3)using cloning
Ex:- ClassName c1
Hi Bob,
I disagree with you that one needs to Learn Servlets before going to JSP.Coz
the reason JSP was developed was to help Page designers who know html and were
supposed to learn bit of JSP to get work done.
If you see JSP internally converted by JSP Enginer to Servlets.
Thanks,
Bilal
--- On
I guess you meant factory methods
http://www.javaworld.com/javaworld/javaqa/2001-05/02-qa-0511-factory.html
--- On Thu, 26/11/09, Lsn.Murthy wrote:
From: Lsn.Murthy
Subject: Re: [java ee programming]
To: prabu...@gmail.com
Cc: java-ee-j2ee-programming-with-passion@googlegroups.com
Date: Thursda
Hi Bilal,
I agree with your point but I said you have to learn Servlets first before
going to JSP cause make it easier for you.
"IMHO, you have to understand how servlets work before you learn JSP cause
it would be easier to understand JSP then."
and that was in the context of what Sadia is goin
hello all:
About lab 4018
I change to work with jcreator but when i extract the file
4018websecurity.zip in the c:/archivos de programa/jcreatorv4LE/myprojects ,
then this file doesnt be in IDE jcreator.
What can i do?
¿anyone can halp me please?
--
You received this message because you are subs
Cloning also one of the methods for creating new objects..
Aditya.
--- On Thu, 26/11/09, Lsn.Murthy wrote:
From: Lsn.Murthy
Subject: Re: [java ee programming]
To: prabu...@gmail.com
Cc: java-ee-j2ee-programming-with-passion@googlegroups.com
Date: Thursday, 26 November, 2009, 1:33 PM
Using Fac
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
On Fri, Nov 27, 2009 at 9:04 AM, d bhagavan wrote:
> Cloning also one of the methods for creating new objects..