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
How to call a C++ function which is compiled with C++ compiler in C code?
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
When we use Windows authentication mode
purpose of abstraction and interface
what are stubs related to foxpro?
Is there any standard procedure to test the application as a whole? Or How can I test complete application right from the requirement gathering?
what is class module in vb6? what it's use? with example..
Which method protects back button to retrieve old value from previous page in Struts.
How to know we are in home page of a web application using QTP
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
Write a pascal program to calculate the sum of the first 100 even number and odd number
In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.
what is the filters in biztakk server? where it can use?
I'm new to ABAP. What is Module pool in SAP?