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 the fastest type of JDBC driver?
How do I start debugging problems related to the JDBC API?
Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?
What are the different types of lockings in jdbc?
I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?
Name the new features added in jdbc 4.0.
Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?
Which type of driver is unique in jdbc?
Is odbc an api?
How to update a resultset programmatically?
What is connection commit?
What is jdbc thin client in oracle?
What is namedparameterjdbctemplate?
What are the advantages of collection pools?
What does the jdbc resultset interface?