I wrote a singleton class for obtaining a database connection.
Now my question is this: assume that there are 100 users accessing the application. If one user closes
import java.sql.Connection; import java.sql.DriverManager; public class sql11 { static Connection getConnection() throws Exception { Class.forName("com.mysql.jdbc.Driver"); Connection c = DriverManager.getConnection("jdbc:mysql://localhost:3306/ics", "root", "077"); return c; } }