I was given this question and was hoping someone could please explain this Java class so I can understand. Thank you, J
JAVA CONCEPTS | SCOPING public class MyClass { public static int num; public static int getNum() { num = 3; if( true ) { int num; num = 10; } return num; } }
Given the above Java class, what is the return value for MyClass.getNum()?