whats is mean by class.forName()
whats the return type of class
Answers were Sorted based on User's Feedback
Answer / sujeev kr singh
class.forName() is a method to load the driver class.
Return type of this method is class object.
eg :- class.forName("sun.jdbc.odbc.jdbcodbcDriver")
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / vallepu veerendra kumar
Class.forName() is a predefined method present in predefined
class(Class)which is present in predefined java.lang
package, responsibility of this method is loading the given
class and it will register the specific driver for
connecting the database,its return type is:Class only
ex:Class.forName("oracle.jdbc.driver.OracleDriver") here
type4 driver i taken, you dont worry you will take ur self
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / habin
Its way to dynamically loading a class to Java run time environment.For example, when a new request comes to ur server,the request processor class has to be loaded to java run time.there this code is used.
class.forName("fully qualified name of request processor")
| Is This Answer Correct ? | 0 Yes | 1 No |
when we applied start()method on a thread ,how does it know that to execute run()method on that object?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
1) Scenario: I developed my application on local system and everything is perfect and tested. Now on UAT this application is deployed on clustered server environment. They are logical or physically clustered. But application is not working over there.  What is the issue with application?  What are the first things which come in your mind?
What restrictions are placed on the location of a package statement within a source code file?
how to get value in combo for updation?
Why JDBC has introduced
What is the RMI and Socket?
what is diff between Access modifier and specifier?
What will happens, when a thread cannot acquire a lock on an object?
Write a program on RMI and JDBC using StoredProcedure?
What is servlet preinitialization?
explain session tracking. why we used it