7 1JDBC
7 1JDBC
2. Write a Java application which will read the data from above
Table and display it in JTABLE.
Use ResultSetMetaData for retrieving the column names
And use ResultSet for retrieving the actual data from table.
Configuration parameters like driver,url,username and password
Should not be hard-coded inside program but should be read
from an external configuration file.
(Note ; Make use of Properties.java class for reading the configuration
Parameters from config.properties file )
Type 4 driver should be used while communicating with DB