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 restrictions are placed on method overriding in java programming?
How do you check if two given string are anagrams?
What is the difference between sleep and wait in java?
What is an abstract class and what is it’s purpose?
How do you remove all elements from an arraylist in java?
Why is it important to initialize a variable?
How do you include a string in java?
What is stored procedure. How do you create stored procedure ?
What about interthread communication and how it takes place in java?
What is difference between == equals () and compareto () method?
How can an object be unreferenced?
Can constructor be inherited?
Is arraylist ordered in java?
What is meant by class loader? How many types are there? When will we use them?
What is an immutable class? How to create an immutable class?