What is the use of Class.forName

Answer Posted / shahin ali ansari

we know there are two type of class loading in memory first
one static loading and second one is dynamic loading,static
block load in memory before main.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.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a singleton program?

566


Why use POJO when I can use hashmap

2045


What is the difference between static and non-static with examples?

1358


Is the infobus client side only?

605


What are callback interfaces?

591






What is chat area? Explain.

553


Explain about RMI Architecture?

608


What are transaction attributes?

610


what are getters and setters in Java with examples?

1284


What is a modular application? What does module-relative mean?

538


What is synchronization and why is it important?

541


What’s jboss jbpm?

576


Are enterprise beans allowed to use thread.sleep()?

645


What must a class do to implement an interface?

583


What is Remote Server?

1682