This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i use MySQL database. suppose i have created multiple databases with create database command.
i can access name s of the tables in a particular database. but i want to access the names of different databases that i have created.
i dont understand how to do that.
That's what the DatabaseMetaData class is there for. You can obtain an instance of it through Connection.getMetaData(). The getCatalogs and getSchemas methods will provide you with lots of information.