Java if statement Question 3

Question

What is the output of the following code?

public class Main {
  public static void main(String[] args) {
    boolean even = false;
    if (even = true) 
      System.out.println("It is even."); 
    
  }
}


It is even.



PreviousNext

Related