[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

43 / 64

What is the output for the below code?

public class Test {
public static void main(String[] args){
String value = "abc";
changeValue(value);
System.out.println(value);
}
public static void changeValue(String {
a = "xyz";
}
}

Aabc

Bxyz

CCompilation fails

DCompilation clean but no output

Answer: Option (Login/Signup)

Show Explanation

Asked In :: TCS NQT

Post Your Answer Here:     

No Discussion on this question yet!