What is the output of the following program ? Justify your . class Check {public static void chg (String (nm)){nm =

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);}}​

Leave a Reply