Question: Question 12 6 pts Study the following Java code: // OuterClass.java: inner class deno public class TryIt { private int data; public void n() {

Question 12 6 pts Study the following Java code: // OuterClass.java: inner class deno public class TryIt { private int data; public void n() { 17 Do something } class TryMore { public void mi() { data++; m(); } } Look at the statements below and select all statements that are correct concerning the above code. The TryMore class could be declared public. The TryMore class could be declared static. The following statement is syntactically correct: TryIt.TryMore obj = TryIt.new TryMore(); The inner class is compiled into a class named Trylt$TryMore.class. Accessing the data variable in TryMore causes a syntax error. The method call to ml) in mil) causes an exception
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
