4
Naptic
7y

Java with it's new DriverManager, but I'm still sitting here and using Class.forName() 'cause the new fancy DriverManger can not fu***ng find the damn driver! 😡😠🤷

Comments
  • 0
    You know, you kinda have to do both, right? Unless you want your code to be one big try
  • 0
    @RazorSh4rk i thought that's how it not should be ...
  • 1
    Use forname in the constructor and you can use drivermanager in separate try-with-resources blocks so you dont have unneccessary connections open
  • 0
    @RazorSh4rk thanks
Add Comment