Computer Applications
If the value of basic=1500, what will be the value of tax after the following statement is executed ?
tax = basic > 1200 ? 200 : 100;
Related Questions
Predict the output of the below Java program snippet:
int a = 18; int b = 12; boolean t = (a > 20 && b < 15)? true : false;Predict the output of the below Java program snippet:
c = (val + 550 < 1700)? 200: 400;if: (a) val = 1000 (b) val = 1500
What is an operator? What are the three main types of operators? Name them.
How is Java expression different from statement?