mikedaruke
Technical User
I am new to Java. So bare with me. I come from a Perl background.
Java is made up of classes, each having their own methods right?
I am creating an application. Pretty much to learn.
It connects to a database. Well should I make a seperate class that makes the connection? This way I would call it when I need the connection. How would I do that and pass back the connection to the main part of the program? I guess I need to hit the books since I am sure its all basic knowlege that I lack.
Any examples that I can play with to learn would be helpful.
Java is made up of classes, each having their own methods right?
I am creating an application. Pretty much to learn.
It connects to a database. Well should I make a seperate class that makes the connection? This way I would call it when I need the connection. How would I do that and pass back the connection to the main part of the program? I guess I need to hit the books since I am sure its all basic knowlege that I lack.
Any examples that I can play with to learn would be helpful.