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
Why is multiple inheritance not supported in java?
What is the maximum size of a string in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is number data type in java?
Define immutable object?
Can we use string in the switch case?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
How do I convert a string to an int in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Can a list be null in java?
What is collections framework?
How are java objects passed to a method and what are native methods?
Wha is the output from system.out.println(“hello”+null); ?
What is class variable java?
What is console based application in java?