Operators

© examsiri.com
Question : 9 of 23
 
Marks: +1, -0
Given:
class Foozit {
  public static void main(String[] args) {
   Integer x = 0;
   Integer y = 0;
   for(Short z = 0; z < 5; z++)
   if((++x > 2) || (++y > 2))
   x++;
   System.out.println(x + " " + y);
} }

What is the result?
Go to Question: