This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
can we use an static method to return connections when we need them ?
posted 9 years ago
Hi thank you for reading my post I have an static method that i create some JDBC connection inside it. when ever i need a connection i call that method and the method will go tru connection creation scenario ( class.forname.....) I have doubt that it does not create new connections and always return the same connection because the connection returns some unknown errors like : table aa does not exists..
What is task of an static method , we can call it from the class instead of creating an object of that class , does it have some other features that affect my job ?