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 does persist mean in java?
What is the use of jprofiler?
when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution
What is tier in java?
What is stateful in java?
What's the difference between code-based security and role-based security? Which one is better? : java security
What do you understand by a variable?
What are messages in java?
What is the use of servlet in java?
What happens when the parent process of a child process exits before the child ?
What is adoptopenjdk?
What is a container in java?
What is a stream in java?
What is gui in java with examples?
How do javabeans work?