Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 69 of 84
 
Marks: +1, -0
public class Test {
   static int count = 0;
   int i = 0;
   public void changeCount() {
      while (i < 5) {
         i++;
         count++;
      }
   }

   public static void main(String[] args) {
      Test check1 = new Test();
      Test check2 = new Test();
      check1.changeCount();
      check2.changeCount();
      System.out.print(check1.count + " : " + check2.count);
   }
}

What is the result?
Go to Question: