Rajesh,
If you want the list of table names, then you can use the
DatabaseMetaData interface. However, if you are asking about the
getTableName method in the "ResultSetMetaData" interface, then, as far as I know, it is not implemented (although I understand that that there is a "request for enhancement" regarding its implementation).
Good Luck,
Avi.