Computer Applications
How do user-defined methods differ from library methods?
Java Math Lib Methods
22 Likes
Answer
A user-defined method is a method defined by the user whereas library methods or built-in methods are the methods created by the developers of Java which are available in the form of packages.
Answered By
10 Likes
Related Questions
What will be the output of Math.abs(-0)?
Given the following statements:
int min = 1, max = 10; int range = max - min + 1; int num = (int) (range * Math.random() + min);The value of num will be in integer such that ………..
Distinguish between Math.ceil() and Math.floor()
What is wrong with the following statements? Explain.
i. result = (5/10) * Math.sqrt( a );
ii. result = math.sqrt(b * b - 4 * a * c) / ( 2 * a );