1

What will be the output of the following java program?
clas output{
public static void main(String []args){
int x = 3.14;
int y = (int) Math.abs(x);
System.out.print(y);
}
}

  • A

    o

  • B

    3

  • C

    3.0

  • D

    3.1