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
How do you control extraneous variables?
What does percent mean in java?
Why arraylist is used in java?
What are keywords and reserved words in java?
What is the use of accept () method in java?
What is the difference between class forname and new?
What is singleton math?
What is a programming object?
What is the purpose of the system class in java?
What is a marker interface?
What are the features of java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
What does it mean that strings are immutable?
List some features of the abstract class.
What are the differences between processes and threads?