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

which government is known for elimination of personal freedom
Who is the head of state in Canada?
Amines, amides, and amino acids are organic compounds containing the element:
What invention allowed for the development of small personal computers? a. The microprocessor b. Satellites c. The fax machine d. The Internet Mark for revi
Occur at underwater subduction zones
what social issues affect homeless people
How do you do this question? It's the first one about a reacurring decimal
A 4,000-kg car traveling at 20m/s hits a wall with a force of 80,000 N and comes to a stop. What was the impact time?
How did the Battle of Okinawa affect President Truman’s decision to use the atomic bomb against Japan? a. It showed that Japan was close to surrendering. b. I
if the [H+] in a solution is 1*10^-1 mol/L, what is the [OH]?