There are 2 different ways to create an object. a)By using
keyword "new" b)By using Class.forName
("className").newInstance();
What is the difference between these 2 methods.
Answer Posted / ratnesh gupta
the first way to create an object is 'class name object
name'and the secondone is classNameAsArgument").newInstance
();
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is hotjava?
What is the base class of all exception classes?
Can we cast any other type to boolean type with type casting?
What is the difference between call by reference and call by pointer?
Explain list interface?
What is a functional interface?
What are wrapper classes in java?
What is independent and dependent variables in research?
What do you mean by global variable?
What is arrays sort in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is the driver class?
What does provide mean construction?
How to perform quicksort in java?
What do bitwise operators do?