Question from the Java - Fundamentals test

Given the following code, what will be displayed in the console?

Easy

Given this code :

public static void main(String[] args){
    int a = 2;
    a += 2;
    System.out.println(a%2);
}

What will be displayed in the console?

Author: Abderrazzak ATIFIStatus: Published(Update)Question passed 1137 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!