muks verma

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

Recent posts by muks verma

Thanks a lot to all guys who replied very fast,now i have better understanding of overriding.
interface I {String s1 = "I";}
class A implements I {String s1 = "A";}
class B extends A {String s1 = "B";}
class C extends B {
String s1 = "C";
void printIt() {
System.out.print(((A)this).s1 + ((B)this).s1 +
((C)this).s1 + ((I)this).s1);
}
public static void main (String[] args) {new C().printIt();}
}

if interface variables implicitly become static and finale then how come in above code it is changing.
My requirment is accessing my web application from PDA and storing data in database or in case if there is no internet storing data in PDA(native application)and later transfer it to database.
20 years ago