Java Programming II | Old Paper Solution | BIM 5th Semester

Except JSP, Servlet and HTML! T2015_16 import java.sql.*; public class T2015_16 {     static Connection con;     static Statement s;     static ResultSet rs;     public static void main(String[] args) throws Exception{         deleteRecord();     }     public static void deleteRecord() throws Exception{         Class.forName(“com.mysql.jdbc.Driver”);         String url=”jdbc:mysql://localhost:3306/fomdb”;         con=DriverManager.getConnection(url,”root”,””);         if(con!=null){             s=con.createStatement();             String sql=”DELETE FROM employee WHERE age>60″;             int res=s.executeUpdate(sql);             if(res!=-1){                 rs=s.executeQuery(“SELECT id,name,salary,post,age FROM employee”); […]