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: AbderrazzakStatus: Published(Update)Question passed 515 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!