I am calling this constructor but it is not getting complied
public conn() {
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql:///dbetech", "root" , "");
}
throwing error message:
D:\etech\WEB-INF\src>javac *.java
conn.java:16: incompatible types
found : java.sql.Connection
required: com.mysql.jdbc.Connection
con=DriverManager.getConnection("jdbc:mysql:///dbetech", "root"
, "");
^
1 error