Answer Posted / nagendar.m
Hi ammu the interviewer doesn't mean to ask the abrivation
of the jdbc.
see, i can justify my ans for this Q? hav a look.
jdbc is an API provided to connet various DB's from a java
program and as part of jdbc there are 4 types of drivers
avilable to connect DB.
>Type-I to Type-IV
>in projects we use Type-IV driver which is called Thin
driver OR we use the combination of thin and Type-III
driver.
>Sample code: Using Thin driver and Oracle DB.
Class.forName("Oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@localhost:1521:server";
Connection connection=DriverManager.getConnection
(url,"SCOTT","TIGER");
PreparedStatement ps=connection.prepareStatement("SELECT *
FROM EMPLOYEE");
ResultSet rs=ps.executeQuery();
i think this Explination is fine...
Is This Answer Correct ? | 28 Yes | 0 No |
Post New Answer View All Answers
What are the authentication modes in asp.net? : java security
Can we install jre without jdk?
If you’re overriding the method equals() of an object, which other method you might also consider?
What is mdb in java?
What is rxjava2?
Why is class forname used in java?
What is cdi bean in java?
What is a stream in programming?
Is php faster than java?
What services can invoke lambda?
how can we create the ui using netbeans,having the code?
Explain working of java virtual machine (jvm)?
What is optional in java 8? What is the use of optional?advantages of java 8 optional?
What is stateless and stateful in java?
What is jpa used for?