1. Distinguish between the if statement and the if-else statement, and give an example of each.
2. Given a person’s age in the integer variable age, write Java statements to test whether a person is younger than 21 years of age. If so, display “Minor”; otherwise display “Of age.”
3. Evaluate each of the following expressions, where x, y, and z contain 1, 3, and 5, respectively:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here