Debasis behera

Greenhorn
+ Follow
since Oct 26, 2009
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 Debasis behera

out put is:


stack.size()=5
Values are in stack = 12
Values are in stack = 23.6755
Values are in stack = Srinivas
Values are in stack = A
i=4
Employee =Srinivas : 163052


so no double will come

14 years ago
In java actually non static method binding is compile time or run time
method overloading is compiletime or runtime polymorphism
method binding in java at compile time or runtime
Actually in Thinking in java it is written that in java every thing is at runtime polymorphism except static method and final and private method
so

the question is show method is overloaded
if it is run time so it must invoke the method show(10);
it gives error,method not found
please give brief description

if you throws a checked exception you are bound to either catch it or throws it to JVM
Rule for Overriding is if in superclass method thows a checked exception then the overrideen method must throws that exception or subtype of that exception or it may not throws any exception;
But in case of if subclass overriden method cant thows checked exception if its superclass method doesnot throws Exception
but there is no condition for unchecked exception
NullPointerException is unchecked RuntimeException
Exception is Checked
yes it chages, you goto that database manuals
It's 64K, according to the Oracle9i Database Reference
if superclass reference refers to subclass object then why we cant invoke subclass method,the actual object is subclass so why
if i write
Animal a=new Dog();//noerror
a.bark()//error why

the actual object is of dog,so why it shows that method not found
14 years ago
Why a superclass reference to subclass object only invoke overriden and superclass method but it cant invoke subclass method
WHY WHY
14 years ago