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...



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.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here