✏️ Explanatory Question

Show the output of the following code :

👁 3,798 Views
📘 Detailed Answer
💡

Answer with Explanation

public class Test {
public static void main(String[] args) {
    System.out.println("3.5 * 4 / 2 - 2.5 is ");
    System.out.println(3.5 * 4 / 2 - 2.5);
    }
}



Output is 3.5 * 4 / 2 - 2.5 is 4.5