-2
To make a connection to the java database, I only have to do it through a main class or I can do it through another class??
public class ConexaoBasica {
public static void main(String[] args) throws SQLException {
Connection conexao = DriverManager.getConnection("banco", "root", "");
System.out.println(conexao);
System.out.println("Conectado!!!");
conexao.close();
}
}