StacySams2271 StacySams2271
  • 02-03-2020
  • Computers and Technology
contestada

What is the output of the following code snippet? int age = 25; if (age > 30) { System.out.println("You are wise!"); } else { System.out.println("You have much to learn!"); }

Respuesta :

ijeggs
ijeggs ijeggs
  • 04-03-2020

Answer:

You have much to learn!

Explanation:

In the question the variable age has been declared and assigned the value of 25.

The if Statement checks if age >30 to output "You are wise!" else it will output "You have too much to learn"

Since age has been assigned the value of 25, we expect the program to execute the else block which is "You have too much to learn"

Answer Link

Otras preguntas

johanna is responsible for setting goals and planning at a medium sized company her job title is director of communications what level of manager is johanna
Which of the following best characterizes the new england colonies during the 1700s?
Can you please help me come up with an unused company/brand name for a company that manufactures tables. Thanks
Balance evokes a sense of stability and calm. a. True b. False
For what was Luis Walter Alvarez most known
Which landmass is moving northward with australia as part of the same tectonic plate
i need. help please help me
Each house will be built in 5\6 of an acre. How much land would be needed for 7 houses?
I dont know what to do. It says to find the slope of the lind that crosses these points. And it gives me some slopes like: (3,5) and (1,9)
The light intensity of a source is 100 candelas. The illuminance on a surface is 4 lux. How far is the surface from the source?