Hi Chaitaili,
The example will fail because Interface methods are implicitly
public.
Class C is providing only
package access for <code>int getValue()</code>. Overriding methods cannot have lower access privileges than the original method.
Hope that helps.
------------------
Jane Griscti
Sun Certified
Java 2 Programmer