Here is the answer.
It is mainly used to load the classes at run time when you are not able to decide which class to load, which may depend on some conditions.The method just loads the class into the memory and when required you can instantiate the class using
This is the concept used in JDBC to register driver(s). A static block in the driver class gets executed which inturn registers the JDBC driver with the connection manager.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.