Answer Posted / p.kodanda rami reddy
After loading the driver in order to refer the what kind of
database u communicate we Establish the connection with the
help of a static method called GETCONNECTION this is from
DRIVER MAMAGER.GETCONNECTION. accepting arguments as JDBC
URL ,USER NAME , PASSWORD
EX: DriverManager.getConnection
("jdbc:odbc:sid","scott","tiger");
here jdbc,odbc,sid -> is url and sid is service id.
scott - > is user name.
tiger - > is password.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a jdbc connection string?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
What is resultset in jdbc with example?
please tell me the name and url path for type-4 driver ?
How do java applications access the database using jdbc?
What are the different types of statements? How we can you use preparedstatement.
Explain the necessary steps to connect to the database in java?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
What do you understand by jdbc statements?
What is jdbc connection class?
Under what circumstances, that all four drivers are used?
Can I get a null resultset?
What are JDBC Best Practices?
DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?
What are different types of JDBC Drivers?