Discussion :: Java.lang Class - General Questions (Q.No.2)
|Dev said: (Sep 13, 2013)|
|What is parameter passed into the method?|
|Vikas said: (Oct 2, 2014)|
|int a = Math.abs(-5) ;
-5 is a valid parameter of int.
|Vishnu said: (Jul 22, 2016)|
|The syntax of that method is : static double abs(double arg)
If we pass int value int will return and if we pass double value will return then how can I staisfy with this answer. Can you any one explain?
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.