it is used to load the class at runtime and in jdbc it is used to load the driver and according to specification every driver class must contain a static block in which it contains the code to instanciate itself and the register itself with the driver manager.
sriaknth
May 15th, 2006
When we call forName() method on Class class what happen is1)initially the class is loaded into the memory2)then it calls the static method forName()3)the static forName() method contains a static block.That static block regiser the loaded driver class with the DriverManager class
Features of an Abstract Class1. Abstract Class cannot be instantiated.2. An Abstract Class must be inherited.3. It may have Concrete Methods.4. It may have Abstract Methods.5. An Abstract Method of an...