please solve this I'm in hurry please solve this
Attachments:
Answers
Answered by
0
a). you will get a compilation error saying possible.loss of conversion from double to float.
but if i ignore compilation
Math.ceil gives the value the next nearest integer that is 8.0
Math.floor gives the nearest lower integer that is 7.0
b)
i) Scanner comes in java.util package
ii) java.lang package contains many imp classes like Object, Boolean , Integer etc
lastbenchstudent:
hey did u get the answer
Similar questions