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
Any real time example of O2C process from taking order till creating invoice.
what is session state?
what are the advantages of sap on other software ?
what is the work of 1tier,2tier,&ntier? Plz Explain it!
What do you understand by modular programming?
diffrence between oracle apps , .NET , SAP
how to work search engine? plz detail answer me.
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
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
Write a program to find factorial of a number using functions
how to convert the data from HTML file to SAS dataset?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
Need provab technical test questions
what is best way to create a Thread class & why?
what is the BAM? where we can use it in BizTalk server?