a) Given two public functions are the parts of some class
Answer the questions that follow. Show Dry run or working:
int pros_number (int x,int y)
{
int g=x%3;
y/=2;
double k=Math pow((g+y), 2);
if (k>(g+y))
return (int) k;
else return(int) (k+2);
}
Answers
Answered by
0
Answer:
- Wrapper class wraps the value of primitive type into an object. It provides many utility methods like conversion between primitive type and String and constants like the smallest and largest possible values of the primitive types. Wrapper classes are part of java.lang package. Double and Character are two examples of wrapper classes.
Similar questions