What is the output of the following program ? Justify your answer.
class Check {
public static void chg (String (nm) )
{
nm = "Aamna" ;
// copy "Aamna" to nm
}
public void test() {
String name = "Julius" ;
System.out.println (name);
chg(name);
System.out.println(name);
}
}
Answers
Answered by
0
Out put will just be
name
I think this will help you and so please like and mark it as the brainliest.
Similar questions