Question: int n=37; /* code omitted */ } } Which of the following correctly describes the scope of the variable n ? n can be accessed

int n=37; /* code omitted */ \} \} Which of the following correctly describes the scope of the variable n ? n can be accessed from anywhere inside the class Act n can be accessed from anywhere inside the method dance, as long as the reference is not inside another set of curly brackets \{\} n can be accessed from any class that uses the class Act n can be accessed from any static method inside the class Act n can be accessed from anywhere inside the method dance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
