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

Method Overloading Pick

Java quiz · Question 22
mediumMethods

Which method is called by printValue(5)?

Code

1public class Main {
2 static void printValue(int x) {
3 System.out.print("int");
4 }
5 
6 static void printValue(double x) {
7 System.out.print("double");
8 }
9 
10 public static void main(String[] args) {
11 printValue(5);
12 }
13}