You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally, we should use the same connection and at the end of your program, you can add index.close() which will close the connection. So you dont need try-with resources.