msketchy msketchy
  • 17-12-2017
  • Computers and Technology
contestada

What is output by the following code?

System.out.print(21.0/5);


1. 3.5
2. 5.5
3. 4
4. 4.2
5. 5

Respuesta :

TheRealBattlesquid
TheRealBattlesquid TheRealBattlesquid
  • 17-12-2017
Division in Java will return the integer value and disregard the remainder. This line of code will return 4.

:)
Answer Link

Otras preguntas

What do frances the United States and Haití all have in common
What is the formula of a. sodium b. potassium c. calcium. d. Barium​
From Geoffrey Chaucer to Jon Stewart: Understanding the Anatomy of Satire To understand satire, students need to know the tools that satirists use. Rather than
those who opposed FDR's new deal believed he was turning the government into __________.
Tsunami’s, liquefaction shaking and aftershock are damage caused by A- hurricanes B- tornadoes C- flooding D- earthquakes
The preferred debt-to-income ratio is usually: A. 28 percent B. 36 percent C. 40 percent D. 50 percent
Help please. . . . . asap
Term referring to someone with antisocial personality disorder
You save a document that is saved on your computer by cutting text from the document what happens to the text when you perform this file operation
Replace ∗ with a monomial so that the result is an identity: 1. (2a+*)(2a-*)=4a^2-b^2 2. (5x+*)(5x-*)=25x^2-0.16y^4 3. (*-b^4)(b^4+*)=121a^10-b^8 4. (*-3x)(*+3x