Can you have a static method in a nonstatic inner class?
Can you have a nonstatic method in a static inner class?
Consider the following class definition:
public class OuterClass
{
public static class InnerClass
public static void someMethod()
System.out.println("From inside.");
}
Other_Members_of_OuterClass
Write an invocation of the static method someMethod that you could use in
some class you define.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here