Show the output of the following code :

Short Answer
Views 3702

Answer:

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

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.