when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise?
Answer Posted / gaurav agrawal
why are you misguiding the people, class.forName("") create
the instance of the class given as argument of the forName
().
first it will load the class in the JVM and after that it
will create the instance.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How do you call a reference in java?
What is singleton class in java and how can we make a class singleton?
Is minecraft 1.15 out?
What is nullpointerexception?
Explain what access modifiers can be used for variables?
What is private static in java?
Can I overload to string method
When is the finally clause of a try-catch-finally statement executed?
Can we use both this () and super () in a constructor?
How do you know if a value is nan?
how we can make a read-only class in java?
What is java object name?
What is public static void main?
What must a class do to implement an interface in java programming?
Can we overload the main() method?