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 meant by data hiding/encapsulation?
What are local variables?
What is the use of join method?
How do you check if an arraylist is not empty?
Can a variable be local and static at the same time?
What is the difference between @before and @beforeclass annotation?
What is variable explain?
What is difference between protected and private?
What is the role of the java.rmi.naming class?
What is the java project architecture?
What is comparator in java?
What are exceptions
Why is the singleton pattern considered to be an anti pattern?
What is 32 bit float?
What is passing parameters in java?