(1) What is the difference between "step over" and "step in" in a debugger?
(2) How does one allocate a new object in Java? Give an example?
(3) Which statement is true regarding the following code,
class Alpha { int i; Alpha() { } } class Beta extends Alpha { int j; class Beta() { } }
class Test { void inc(int i) { i++; } public static void main(String[] args) { int i = 5; inc(i); system.out.println(i); } }
class Wrapper { int i = 5; void inc() { i++; } } class Test { public static void main(String[] args) { Wrapper w = new Wrapper(); w.inc(); system.out.println(w.i); } }