vernonstancoco
vernonstancoco vernonstancoco
  • 16-09-2020
  • Computers and Technology
contestada

JAVA

What will be the result of the following two expressions
if i= 10 initially
concidering both the expressions mutually inclusive ?

a)System.out.println(++i<=0);

b)System.out.println(++i<=10);
​

Respuesta :

tonb
tonb tonb
  • 16-09-2020

Answer:

false

false

Explanation:

a) since i starts out being 10, it will never be <= 0, so that one is always false.

b) i is incremented just before it is compared to 10, so it will be 11 at the time of the comparison, which will therefore also return false.

Answer Link

Otras preguntas

What was Harriet Beecher Stowe's BIGGEST role in the Antebellum United States?
Read the passage below and answer the question that follows. In the fictional country of Wachoviak, there is one leader who holds all of the power. He took powe
Please help: (PHOTO ATTACHED)
How are convection currents important in the Earth System?
Lesson 04.01: Chemical vs. Physical Changes and Properties Define and identify chemical and physical properties and changes. Give examples of physical and chemi
Which is not a way a citizen can participate in policy making decisions answers?
Each morning an individual leaves his house and goes for a run. he is equally likely to leave either from his front or back door. upon leaving the house, he cho
which of the following tu commands means be a. se b. si c. es d. soy
Explain how you can use doubles when multiplying with 4 to find 4x8
osman was a muslim who had a dream to expand his empire to asia, africa and europe true or false