What are the classes in java.sql package ?
Answer: The java.sql package includes only one class, that is, DriverManager.
All others are interfaces in java.sql package.
Answer: The java.sql package includes only one class, that is, DriverManager.
All others are interfaces in java.sql package.
6 comments:
Yea, java.sql contains only one class. Statement, Connection, ResultSet are interfaces.
Question: What are this() and super() in constructors in JAVA?
Answer: this() is used to invoke a constructor of the same class.
And, super() is used to invoke a super class constructor.
Is this() different from this? Please explain the internal thing of 'this' keyword.
Please check for the answer at
http://qsrealm.blogspot.com/2011/11/this-keyword.html
thanks
this is a keyword that can be used to call the variables and functions of the current class. Just like any other object of the current class.
Post a Comment