This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have below questions on class.forname() statement in JDBC connecion
1. If we do like class.forname("com.a.b.c");class.forname("com.p.q.r");... then will JVM load all classes or it will load only first one (or last one) and will ignore all others?
2. Also after using class.forname(("com.a.b.c"); we get connection as DriverManager.getConnection("jdbc:mysql:///test",user,pass) so then how exactly database url finds its corrosponding class which has been loaded using class.forname(). (if it uses reflextion, then can anybody pls tell me how it exactly works).