Tuesday, 1 November 2011

Viewers' Question

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.

6 comments:

Anonymous said...

Yea, java.sql contains only one class. Statement, Connection, ResultSet are interfaces.

Question: What are this() and super() in constructors in JAVA?

Realm Head said...

Answer: this() is used to invoke a constructor of the same class.
And, super() is used to invoke a super class constructor.

Joe Mueller said...

Is this() different from this? Please explain the internal thing of 'this' keyword.

Realm Head said...

Please check for the answer at
http://qsrealm.blogspot.com/2011/11/this-keyword.html

Joe Mueller said...

thanks

Gusty said...

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.

JAVA Project Specifications Lecture Notes: SE OS JAVA

X