CJCoding With Joseph
15per day
← Back to Question List

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

Topics:
Java Quiz #25

Integer Division Result

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}