Check out example codes for "how to implement a interface in java". It will help you in understanding the concepts better.

Code Example 1

interface methods{
 public static hey(); 

class scratch implements methods{
  // Required to implement all methods declared in an interface 
  // Or else the class becomes abstract
  public static hey(){

Learn ReactJs, React Native from