public class Tester { static int x = 4; int y = 9; public Tester() { System.out.print(this.x); // line 7 printVariables(); } public static void printVariables() { System.out.print(x); // line 12 System.out.print(y); // line 13 } public static void main(String... args) { // line 16 new Tester(); } }
static int x = 4;
int y = 9;
public Tester() {
System.out.print(this.x); // line 7
printVariables();
}
public static void printVariables() {
System.out.print(x); // line 12
System.out.print(y); // line 13
public static void main(String... args) { // line 16
new Tester();
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.