We are getting the connection string from properties file in our program is to avoid recompile the java file if we have make any changes in the connection. To do that, u can use the resource bundle class provide by sun to read the file and use it thoroughly in ur program.
HTH
|