...
Computer-Networks
October 3, 2023
OOPS
October 3, 2023
Computer-Networks
October 3, 2023
OOPS
October 3, 2023

OOPS

Question 37
Which of the following are valid calls to math.max in java?

  1. Math.max(1,4)
  2. Math.max(2.3,5)
  3. Math.max(1,3,5,7)
  4. Math.max(-1.5,-2.8f)
A
A,b and d
B
B,c and d
C
A,b and c
D
C and d
Question 37 Explanation: 
→The java.lang.Math.max(int a, int b) returns the greater of two int values.
→We can find the greater of any two data types variables.
→Option C consists of four variables , So it is invalid.
Correct Answer: A
Question 37 Explanation: 
→The java.lang.Math.max(int a, int b) returns the greater of two int values.
→We can find the greater of any two data types variables.
→Option C consists of four variables , So it is invalid.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!