Explain the JDB in depth & command line.



Explain the JDB in depth & command line...

Answer / Pankaj Pal

JDBC (Java Database Connectivity) is an API that allows Java applications to interact with databases. It provides a standard way for connecting, executing SQL queries, and manipulating data across different database management systems (DBMS).nnKey points:n- JDBC supports various drivers like JDBC-ODBC Bridge Driver, JDBC-Net Driver, JDBC-Driver, etc.n- To connect to a database using JDBC, you need the appropriate driver, connection URL, username, and password.nnCommand line example:n```bashnjavac -cp your_jar_file.jar YourClass.java && java -cp .:your_jar_file.jar YourClassn```nReplace `your_jar_file.jar` with the path to the JDBC driver JAR file, and `YourClass` with the name of the class containing the JDBC code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How multipleInheritance is possible in java?

18 Answers   Satyam,


What modifiers are used for interface declaration?

7 Answers  


What is prime number in java?

1 Answers  


What is import java util arraylist?

1 Answers  


what is the purpose of using rmisecuritymanager in rmi?

1 Answers  


What is the method to declare member of a class static?

1 Answers   HCL,


What is the major difference between linkedlist and arraylist?

1 Answers  


how to connect one jsp page to another jsp page????

6 Answers   IIT, Symphony,


What is the purpose of garbage collection in java?

1 Answers  


What is "finally" keyword?

10 Answers  


What is yielding and sleeping? how they different?

2 Answers  


Is intellij better than eclipse?

1 Answers  


Categories