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 is meant by rest api in java?
What is the use of rs next () in java?
What is proxy object in java?
What is entitymanager in jpa?
What is profile in java?
Define network programming?
What is savepoint in java?
What is a singleton in java?
What if I do not provide the string array as the argument to the method?
What are java’s rules regarding tabs, spaces and newline characters?
How does java handle integer overflows and underflows?
What is custom tag in java?
What is a controller in java?
Which version of my browser should I use? : java security
What is java lang?