raajendra nath

Greenhorn
+ Follow
since Jul 18, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by raajendra nath

thanq very much.......now its clear for me.......
we are doing this from past three days........my gawd!!!i got answer in just 18 mins.......once again thanx to every one
17 years ago
thanq for ur welcome and reply......i almost got it!!

so here
Connection egcon=DriverManager.getConnection("jdbc dbc:xxx");

we are assigning implementing class's object to interface......
so is it polymorphism like thing???

and one more doubt...why these classes r made invisible???(am i asking too many doubts ??)
17 years ago
actually i dint get u....can u give me an example(non-api interface) like
creating some interface like exinterface and giving
exinterface ex;(can i give like this )
17 years ago
as far as I know interface is there to support mulitiple inheritence like thing....and it'll consists of all abstract methods.....but when i looked at some interfaces in api like Connection,ResultSet they are calling some methods(like normal classes) and the methods are returning some values too..
for example:

ResultSet rs=Stmt.executeQuery("select ....................");
if(rs.next())

(rs.next method is returning boolean, but resultset is interface )..... my doubt is where and how all these methods for interfaces in api are implemented(sorry if i am missing any basic thing)
thanx in advance
17 years ago