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 |
WAP to print all prime nos between 1 to 100 without using user input...pls reply within few hours...
which book we learned this mantis? how many version are realsed this mantis upto now?
What is meant by SQL,PL/SQL,SQL PLUS? Is there any differnece between them?
how many logical drive we can form to physical device in our computer?
what is difference between VB5 AND VB6.0
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fit" instead of the number and for the multiples of five print "Bit". For numbers which are multiples of both three and five print "FitBit".
What is a dialog based program
Expand the following a) ISDN b) CASE c) CSMA/CD d) OOPS e) MIMD
what is inprocess and outprocess in vb
cobol is execution r not without jcl
what is encapulation?
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern