What is built in function in java? I found some question and it was like "... solve this without using built in function". So, what is it? I know java support methods,what's different between both of them?
Built in functions in java are methods that are present in different API of JDK. For example cos(double a), exp(double a)
etc are built in function of java present in java.lang.Math
class.
Solve without using built in functions means if you have to calculate X raised to the power of Y, you define your own logic to calculate the result. You don't use built in function Math.pow(X, Y)
, that returns the value of the first argument raised to the power of the second argument.
It means solve it using only methods that YOU have implemented. Do not use anything that came as a part of the JDK you installed.
JDK = Java Development Kit
It includes a rich library to assist with some of the more common tasks in java coding. It sounds like you are supposed to avoid using this library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With