santosh thiruvanagiri

Greenhorn
+ Follow
since Jun 22, 2007
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 santosh thiruvanagiri

Yes StringBuffer is a final class .. soo it cannot be overridden .. Hence we can't override equal method ..

That is the reason why false is printing ..
There can be situation where an Interface needs to be implemented by a class which is in different package as that of interface. But here the implementing class should have access to methods inside the interface.So we give public access specifier for class inside interface by default .
and
In implements clause , U can specify interface name with complete package extension (, which is not possible in case of methods) .
Ex:
class ABC implements com.ex.InterfaceEx

Thank You ,
Santosh Kumar.T