Class implementing two interfaces

Code:
class MyClass implements MyInterfaceOne,MyInterfaceTwo {
 
  public void methodOne(){
      System.out.println("inside methodOne()");
  }
  public void methodTwo(){
      System.out.println("inside methodTwo()");
  }
 
}
 
interface MyInterfaceOne {
  void methodOne();
}
 
interface MyInterfaceTwo {
  void methodTwo();
}
 
public class MyClassTest {
   public static void main(String[] args) {
      MyClass mc = new MyClass();
      mc.methodOne();
      mc.methodTwo();
   }
}
 

Output:
$ java MyClassTest
inside methodOne()
inside methodTwo()