What class.forname will do while loading drivers of jdbc?
No Answer is Posted For this Question
Be the First to Post Answer
What is jdbc thin client in oracle?
How to make updates to updatable result sets in jdbc?
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 Answers Cybermate, Hexaware,
What does the jdbc driver interface do?
What are different types of JDBC Drivers?
What is DML?
What is PreparedStatement?
Write an sql to find all records having all upper case alphanumeric characters in a field ?
How do you create Connection?
How do I receive a ResultSet from a stored procedure?
MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......
Is java a database?