Question :What actually does Class.forName("mypackage.MyDriver"); method
do? (JDBC)
Answer :Class.forName("..."); initializes the provided class and returns the Class
object associated with the class or interface with the given string name.
For example, the following code fragment returns the runtime Class
descriptor for the class
named java.lang.Thread:
Class t = Class.forName("java.lang.Thread")
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
What actually does Class.forName("mypackage.MyDriver"); method
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment