Java Scope Try/Catch
问题 Fairly new to Java and am trying to better understand a few things. I understand that try/catch statement variables only have scope within that statement. I am trying to learn java db sql and am running into an issue. final String DB_URL = "jdbc:derby://localhost:1527/Customers"; Connection conn = DriverManager.getConnection(DB_URL); This creates the connection with my database. I need to have this in a try/catch statement. I want to access the conn variable again at the end of the program to