what does the method Class.forName returns?
Answer Posted / uv
When Class.forName("<classname>") function gets
executed,the class gets loaded in JVM.
To create an object and access its functions and variables,
we can use getInstance( ), please look into the below
fragment code:
Class c = Class.forName("Cls");
Object o = null;
o = c.getInstance( );
// type casting the Object
Cls cl = (Cls) o;
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is odbc. how is it related to sql cli?
How the JDBC application works?
What is connection pooling and why it is used?
What is ojdbc?
How to set NULL values in JDBC PreparedStatement?
Is jdbc a middleware?
What is JDBC Savepoint? How to use it?
Where is ojdbc14 jar located?
Is jpa faster than jdbc?
How to move the cursor in scrollable resultset ?
What is ojvm used for?
What is the meaning of “dirty read” in the database?
What do you understand by jdbc driver and explain its types?
Is jdbc open source?
How many types of resultset are there in jdbc?