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 of the following chemical equations show(s) oxidation-reduction reactions?1. Mg(s) + I2(aq) --> MgI2(s)2. Pb(ClO4)2(aq) + 2 KI(aq) --> PbI2(s) + 2 K
Please help me with this problem
simplify the expression (x^1/6)^3
Red Sox pitcher Curt Schilling throws fastballs 52% of the time, curveballs 10%, sliders 13%, changeups 8%, and splitters 17%. (10 pts) a.    The scorer wants t
show me how to work the equation for 6×+20=-4​
An expression is shown.5 x 20 x 10²What is the value of the expression? ​
Each X requires 2 of component Y; each Y requires 4 of part Z. The lead time for assembly of X is 1 week. The lead time for the manufacture of Y is 1 week. The
A car traveled 990 feet down a road in 15 seconds. How many miles per hour was the car traveling?
Without doing any calculations, match the following thermodynamic properties with their appropriate numerical sign for the following exothermic reaction. 2C2H6(
Summarize how children learn and develop important skills.