Single Choice
Not Set
QWhat will be the output?
public class Test{
public static void main(String[] args){
String value = "abc";
changeValue(value);
System.out.println(value);
}
public static void changeValue(String a){
a = "xyz";
}
}
ID: #2190
Java Constructor and Methods
622 views
Question Info
#2190Q 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
abc
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic