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
How we can you use preparedstatement.
What are the common JDBC problems that you got and how do you solved them?
Is jpa faster than jdbc?
What is db client?
What is xe in oracle jdbc url?
What is jdbc and explain jdbc architecture?
What does connection pooling mean ?
What is jdbc and jdbc drivers?
What is jdbc odbc bridge in java?
Which type of driver provides jdbc access via one or more odbc drivers?
What are types of resultset?
What are types of jdbc drivers?
Explain Basic Steps in Writing a Java Program Using Jdbc?
Explain the JDBC Architecture?
What is jdbc dialect?