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 #22

Method Overloading Pick

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}