Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.
4 9680Post New Hexaware JDBC Interview Questions
Name different types of the data model?
What are wooden shingles?
Explain long term capital gains and how is it different from short term capital gains?
What information is defined in the system catalog?
What is a spanning tree?does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?
What is JDBC DataSource and what are it’s benefits?
Who is the father of os?
Define pcb?
Can all IoT devices talk to each other? What is the Standard for Communication between these devices?
What is the purpose or use of @testvisible?
Define path in a graph?
What do you mean by hash function?
What is the multiplication symbol called?
What is the use of mongodb sort()?
How do I check the health of my hard drive?