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 |
which book we learned this mantis? how many version are realsed this mantis upto now?
Why data bus is bidirectional and address bus is unidirectional?
1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?
how do i add a column dynamically in a table by using java application?
what is d main diff between the java and .net framework
in cobol,wat is the difference in using 'set index in occurs clause' ....and 'occurs depending-on clause'
can php support multiple inheritence?
how to stop execution of step 3 in a job mainframe
What is the output of the following x = "abcdef" i = "a" for i in x: print(i), a) no output b) i i i i i i … c) a a a a a a … d) a b c d e f
For C sharp,At the time of software is implemented at client site, is it required that client machine have C sharp(Microsoft Visual Basic) setup?
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
Plz Show notepad Coding using c# in window based application