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

Explain ioc concept?

628


How can I avoid validating a form before data is entered?

556


What is a class loader? What are the different class loaders used by jvm?

587


how do you Handle Front End Application data against DB with example?

1481


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

652






Which are the different segments of memory?

600


What is the purpose of the finally clause of a try-catch-finally statement?

561


Which containers use a border layout as their default layout?

615


What are transaction attributes?

616


What is local interface. How values will be passed?

558


Java is fully object oriented languages or not?

542


What are the different class loaders used by jvm?

604


Explain the difference between object state and behavior?

570


Are there books about seam?

636


How would you create a button with rounded edges?

564