Lets say I was to create a program, have a login, register database and everything. Now my question is what is the best way to store information even when the program ends. My old possibility I know is to read and write to a file. But I thought their has to be something more than just that.
Right now, for tommorow I have JDBC i'm going to learn. Is that the answer to my problem? Or what other ways is there, and what's the best/most commonly used in a business invironement/freelancer.
Please elaborate on the concept in general, going through all the possibilities to the advantages or disadvantages to each if you may.