The question I have is relatively simple, but being slightly new at Java, its confusing to find the right answer:
In the case of an extremely simple single user standalone java application, are static connection variables still considered bad practice?
For example, using the Connection variable C in the above DB class to connect to the database across the application.
Another small question I have is,
Again in the case of a simple, single user application, will keeping the connection open (instead of closing DB.closeConnection()) have any undesirable consequences?
Many thanks