F
frank
Hi friends,
have some doubt in Interface...
they are.....
1. Why the Variables are Private static final in Interface..... where
all the methods
are Public...
2. interface a
{
private static final int a=10;
}
interface b
{
private static final int a=50;
}
class c implements a,b
{
which value of 'a' is available Here....?
}
I run it but it show ambiguity Error ....
I think the Problem is in Multiple Inheritance is still in Java....?
Please clear...
thanks In Advance....
have some doubt in Interface...
they are.....
1. Why the Variables are Private static final in Interface..... where
all the methods
are Public...
2. interface a
{
private static final int a=10;
}
interface b
{
private static final int a=50;
}
class c implements a,b
{
which value of 'a' is available Here....?
}
I run it but it show ambiguity Error ....
I think the Problem is in Multiple Inheritance is still in Java....?
Please clear...
thanks In Advance....