What are the other ways to create an object with out calling
new keyword in java?
Answer Posted / sumitpalsingh
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 |
Post New Answer View All Answers
Hi can you please send me recent(present) interview questions and technical qyestions with answers for "BUSSIESS OBJECTS" and "DATA WAREHOUSE".pls its urgent for me my mail id is sekhar.cs82@gmail.com,manjuforgis@gmail.com. thanks in advance
5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above
3. What is the difference between testing and Quality Assurance?
Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)
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
hi viewers, tell me,what is scripting and programming, define and difference...pls
how to hide prompts
Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.
How to set on/off a group of indicators in a single statement?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
what is the basic and unique feature of dotnet
differences between qtp10.0 and 11.0 ?
How to know we are in home page of a web application using QTP
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe