1.

What is the output of this program?
public class Math_Example 
{
public static void main(String args[])
{
int num0 = 10;
int num1 = (int) Math.abs(num0);
System.out.print(num1);
}
}

A. 10.0
B. 10
C. 1
D. 0
E. None of these
Answer» C. 1


Discussion

No Comment Found

Related MCQs