public class X { public static void main (Stringargs) { string s = new string (“Hello”); modify(s); System.out.printIn(s); } public static void modify (String s) { s += “world!”; } } What is the result?()
- AThe program runs and prints “Hello”
- BAn error causes compilation to fail.
- CThe program runs and prints “Hello world!”
- DThe program runs but aborts with an exception.