Java Arithmetic Operator Question 11

Question

What is the output of the following code?

public class Main {
  public static void main(String[] args) {
    double a = 6.5; 
    a += a + 1; 
    System.out.println(a); // Expression 
  }
}


14.0



PreviousNext

Related