I have the following code...
Interface test
{
int i;
}
it shows the error when i compiled it. Then i assigned a value for i=0. After this correction it's working fine.
My doubt is "Why we assign a value ?". Because in interface it is defaulty static and final. if i use a static field in my class then it is automatically assigned for "0". But here it shows error ? Why this error will come ?
----------------
suresh