In java variables overriding is not possible. In second interface you are redeclaring interfaceConstant variable or you can say you are hidding first interfaceConstant by second interfaceConstant variable this is why you get output - 12
Joined: Feb 07, 2005
check code Above.
Joined: Jul 21, 2006
Interface variables are implicitly final Then how come we redeclare an interface variable
Both Interface varibles are declaring, intializing and working seperately. and there is not link b/w them. So which interface variable you will call you will get that value. Hope you understand now. thanks