Which TYPE of driver it is? (Type 1,2,3,4) if i write -
Connection con = null;
Statement stmt = null;
try
{
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/");
stmt =con.CreateStatement();
}
catch(Exception e)
{
e.printstacktrace();
}
And how to recognize various *TYPE of drivers if code snippet is written? Yes it's MySQL Database driver! But, I mean how to recognize the TYPE in JDBC? like we have- Type1:JDBC-ODBC bridge. Type2:Native-API/Partially Java Driver. Type3:Net-Protocol/ All- Java driver. Type4:Native-Protocol/All- Java driver.*