Single Choice
Not Set
QWhat is the output for the below code?
public class Test{
public static void printValue(int i, int j, int k){
System.out.println("int");
}
public static void printValue(byte...b){
System.out.println("long");
}
public static void main(String... args){
byte b = 9;
printValue(b,b,b);
}
}
ID: #2191
Java Constructor and Methods
815 views
Question Info
#2191Q ID
Not SetDifficulty
Java Constructor and MethodsTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
int
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic