Show the output of the following code :

Java Programming Language >   Overview of Java Language >   Tokens in Java  

Short Question

3897


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


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.