What will the result of the following code:

public class Main
{
public static void main(String args[])
{
int a = 21; b = 2;
int num = a / b;
System.out.println(num);
}
}

1
Output: The value of num is 10.5 
2
Run-time error
3
Compilation error
4
None of these 

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation