What is the output of the following code snippet? double income = 45000; double cutoff = 55000; double minIncome = 30000; if (minIncome > income) { System.out.println("Minimum income requirement is not met."); } if (cutoff < income) { System.out.println("Maximum income limit is exceeded."); } else { System.out.println("Income requirement is met."); }

Answer :

Answer:

Income requirement is met.

Explanation:

(minIncome > income) will evaluate to false

(cutOff < income) will evaluate to false

the else portion will be executed which is "Income requirement is met"

Other Questions