when we write class.forName("any one class"); what happens
actually?what it will return?explain stepwise?
Answer Posted / raghu
When Class.forNmae("className") is executed, the class will
be loaded, as soon as the class is loaded the static block
will be executed.In the static block the thngs will happen.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is parameter example?
Is class is a data type?
Difference between collection, collection and collections in java?
Is oracle java 11 free?
What's the difference between an abstract class and interface in java?
What is a linkedhashmap java?
Explain constructors and types of constructors in java.
What is private static in java?
What is type parameter in java?
How do you initialize an arraylist in java?
Why singleton is not thread safe?
What is bifunction in java?
What do you know about the garbate collector?
Can constructor be protected in java?
What is method with example?