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"; }}
1.xyz
2.abc
3.Compilation fails
4.Compilation clean but no output
Posted Date:-2021-10-25 05:21:08