How can you try and catch and error and avoiding code redundancy in Java 7. With Java 7 still in beta mode, there are more upgrades to this amazing programming language.
Coding have never been the same!!! Some bad habits when writing codes which are redundant
String[] special = {“a1″,”a2″,”a3″,”a4″};
Connection con = null;
PreparedStatement stmt = null;
PreparedStatement stmt2 = null;
ResultSet rs = null;
ResultSet rs2 = null;
Class.forName (“com.mysql.jdbc.Driver”)
conn = DriverManager.getConnection (url, userName, password);
String [...]