How to create an instance of a class without using "new"
operator? Plz help me out properly.Thank u.
Answer Posted / abhishek thakur
1. Four Ways of Object creation
i)Using "new" operator
ii)Using newInstance Method in Class.forName(class name)
iii)in case of deserialisation
iv)using clone
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
Can we have two main methods in a java class?
Explain about wait() method?
Can we write class inside a class in java?
What are the different http methods?
Are variables stored in ram?
Have you ever used hashtable and dictionary?
What does sizeof return?
What is the right data type to represent a price in java?
What does serializing data mean?
How many decimal places is a double?
What is use of super keyword in java?
How do you detect memory leaks?
What do you meant by active and passive objects?
What is the difference between a method and a procedure?