1Z0-830 Web TestEngine demo

Exit VCEDump 1Z0-830 Java SE 21 Developer Professional
Question 14 of 15
0% complete
Q14 Single choice

Given:

java

public class SpecialAddition extends Addition implements Special {

public static void main(String[] args) {

System.out.println(new SpecialAddition().add());

}

int add() {

return --foo + bar--;

}

}

class Addition {

int foo = 1;

}

interface Special {

int bar = 1;

}

What is printed?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in