public class Tester { int x = 12; static Tester reset( Tester obj) { obj = null; return obj; } public static void main(String[] args) { Tester o1 = new Tester(); o1 = reset(o1); System.out.print(o1.x); } }
int x = 12;
static Tester reset( Tester obj) {
obj = null;
return obj;
}
public static void main(String[] args) {
Tester o1 = new Tester();
o1 = reset(o1);
System.out.print(o1.x);
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.