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
Can java program run without jdk?
What is java lang noclassdeffounderror?
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.
What is the difference between lambdas and delegates?
What is an actionevent in java?
Is jdk a compiler?
What is meant by annotation in java?
What is proxy object in java?
How do you find lambda?
What is dto in java?
What about 'hostile applets'? : java security
What is a jpa repository?
What are anonymous methods and lambda expression?
What kind of thread is the garbage collector thread?
What is Map,List,hashtable,ArrayList and difference between them??