Interface means only the method declaration will be available not a implementation part of the method.We can say interface methods are abstract method because it has only the method declaration part alone.
So, for implementing the method that are available in the interface. We have to implements interface to class which is having the implementation part of those methods.
public void show();
public void get();
class ins implements sam
public void show()
public void get()
public static void main(String ar)
ins a=new ins();