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
Prepared statements are faster. Why?
What are the new features added to JDBC 4.0?
What are the exceptions in jdbc?
When does the result for an sql statement return null?
Describe how the jdbc application works.
What is the advantage of namedparameterjdbctemplate?
How many jdbc driver types are there?
What are the methods which can verify the cursor particular position?
What is jdbc oracle thin?
What are the different types of statements in jdbc?
What is jdbc odbc driver?
How vendor Naming registry supports JNDI?
What is resultsetmetadata?
Discuss the significances of jdbc.
How do I connect to jdbc?