nestedclass_in_interface.htm

import java.io.*;
import java.lang.*;
import java.lang.reflect.*;
public class Test_This {
public static void main(String[] args) throws IOException{
System.out.println("------------------");
Process pp = new Process();
pp.method_1();
pp.do_something();
System.out.println("------------------");
}
}
class Process extends A implements Interface_NestedClass
    {
      public void do_something()
{
Interface_NestedClass.Nested ins = new Interface_NestedClass.Nested();
ins.method_1();

}
public void method_1()
{
A a = new A();
a.method_3();
}
}
interface Interface_NestedClass
{
class Nested
{
public Nested() { System.out.println(" Nested class in an Interface");}
public void method_1(){System.out.println(" method_1 is nested class in interface");}
}
}

class A
{
public void method_3()
{
//do something
System.out.println(" method_3 class A");
}
}