3,785 views
7 votes
7 votes

Find the output of the following Java code line 

System.out.printIn(math.floor(-7.4))
  1. -7
  2. -8
  3. -7.4
  4. -7.0

2 Answers

Best answer
11 votes
11 votes

Ans B) -8

floor is lower limit

selected by
2 votes
2 votes
 floor method​  of Java Math class. floor method returns the largest interger .so answer is (b)
Answer:

Related questions

5 votes
5 votes
3 answers
1
go_editor asked Jun 22, 2016
3,796 views
In Java, after executing the following code what are the values of x, y and z?int x,y=10; z=12;x=y++ + z++;x=22, y=10, z=12x=24, y=10, z=12x=24, y=11, z=13x=22, y=11, z=1...
0 votes
0 votes
1 answer
2
admin asked Apr 1, 2020
945 views
Is null an object?YesNoSometimes yesNone of these
0 votes
0 votes
1 answer
3
admin asked Mar 31, 2020
683 views
Earlier name of Java programming language was:OAKDNetbeanEclipse
0 votes
0 votes
1 answer
4
admin asked Mar 31, 2020
998 views
Which of the following is a platform free language?JAVACAssemblyFortran