CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Integer Division Result

Java quiz · Question 25
mediumMethods

What is printed?

Code

1public class Main {
2 public static void main(String[] args) {
3 int a = 5;
4 int b = 2;
5 double result = a / b;
6 
7 System.out.println(result);
8 }
9}