What will be the output of this code?

Last Updated :
Discuss
Comments

What will be the output of this code?

Java
int a = 7;
double b = 2;
System.out.println(a / b);

3

3.5

3.0

Error

Share your thoughts in the comments