Check out example codes for "use variables in interface java". It will help you in understanding the concepts better.

Code Example 1

public class MyInterfaceImpl implements MyInterface {

    public void sayHello() {
        System.out.println(MyInterface.hello);
    }
}

Learn ReactJs, React Native from akashmittal.com