class Sookshmas
{
static int k=20;
static String name = "MyName";
static class Sookshmas1
{
void m1()
{
System.out.println("The value of k is: " + k);
System.out.println("The name is: " + name);
}
static void m3()
{
System.out.println("Hello from inner class");
}
}
}
class Test
{
public static void main(String[] args)
{
Sookshmas.Sookshmas1 ab=new Sookshmas.Sookshmas1();
ab.m1();
Sookshmas.Sookshmas1.m3();
}
}

Predict the output.

Posted on by