devender negi

Greenhorn
+ Follow
since May 16, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by devender negi

Thanks.
i got this question from my institute paper.n idnot know from where they got it
Which one is good 1.4 or 1.5
How we decide overloading and overriding with object ref..like


class A {} class B extends A {} class C extends B {}
class D {
void m1(A a) {System.out.print("A");}
void m1(B b) {System.out.print("B");}
void m1(C c) {System.out.print("C");}
public static void main(String[] args) {
A c1 = new C(); B c2 = new C(); C c3 = new C(); D d1 = new D();
d1.m1(c1); d1.m1(c2); d1.m1(c3);
}}
what will be output.

Thanks
Good he is right..there max n min values are undefind
Hi;
No dear 1.4 still is in ...