Q) Develop a JDBC application / project that prompts the end-user to enter the table name and that displays all the column names of the table.
A) ->ResultSet interface doesn’t have any methods directly to know about column details. For that purpose we need to use “java.sql.ResultSetMetaData” interface. ->it has methods to deal with column details. 1) getColumnCount() 2) getColumnName(int no ) ->Here no means column number. ->ResultSetMetaData object is created as fallows resultSetMetaData rsmd=rs.getMetaData(); Example: // columndetailsexample.java import java.sql.*; import java.util.Scanner; class columndetailsexample { public static void main(String[] args) throws ClassNotFoundException ,SQLException{ Scanner s= new Scanner(System. in ); System. out .println( "Enter table name" ); String table=s.next(); ...