Shanon5415 Shanon5415
  • 19-12-2022
  • Computers and Technology
contestada

What is the difference between the result of the following two Java statements?
I. int cents = (int)(100 * price + 0.5);
II. int cents = (100 * price + 0.5);
A. Statement I causes truncation, but II does not
B. Statement II causes truncation, but I does not
C. Statement I compiles, but II does not
D. Statement II compiles, but I does not

Respuesta :

Otras preguntas

¿Qué es metáfora? y 10 ejemplos​
can someone please help me​
In the United States, people pay taxes so government can provide services to the people. What is one benefit of the government providing services instead of all
A glacier advanced down a mountain from an elevation of 2010 m to 1780 m in 5 years. What was the glaciers rate of change in a year and a month? the answer must
Help? don't know what to pick, and please dont choose randomly
Jodie has 68 red marbles and 272 blue marbles. What percent of Jodie’s marbles are red?
“fateful journey” what elements of the story What did he alter?(paragraph answer).
IshipWhat attributes should an entrepreneur posses for him to run asuccessfulbusiness enterprise lest at least s attributes and discussthemFX olan​
can someone please help me​
Explain the meaning of a small family.​