What are the other ways to create an object with out calling
new keyword in java?
Answers were Sorted based on User's Feedback
Answer / bala
using in class.for name method
myobject obj=(my object)class.for name("sub in.rnd.my object").new instance();
| Is This Answer Correct ? | 1 Yes | 0 No |
1.by using newInstance();,but before this we have to load the class by using Class.forName();
myobject obj=(my object)class.for name("sub in.rnd.my object").new instance();
2.By using clone();
3.BY using DeSerialization.
ObjectInputStream inStream = new ObjectInputStream(anInputStream );
MyObject object = (MyObject) inStream.readObject();
4.By using String class .
| Is This Answer Correct ? | 0 Yes | 0 No |
why we need to take u?
how to invoke the macro in another macro?
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
what is different between kenerl mode and user mode?
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END
How do you pass variables forwrd to future CECI sessions
HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??
iam confused to choose among testing, .net and java can anybody help me????????
How many forms can you create in a Visual Basic 6 Standard EXE project? Is there any limit on that?
how MATLSB software suitable for electrical branch? which tools are useful??
write a program for finding the union of two integer array in java?
What is the Difference between in memory database and physical database