Question: please write the output assuming the program is correct !! 10) class Example15 { public static void main(String[] args) { String str = new String(abc);
please write the output assuming the program is correct !! 
10) class Example15 { public static void main(String[] args) { String str = new String("abc"); String stri. "abc"; String str2 = new String("abc"); System.out.println(str = stri); System.out.println(str - str2); System.out.println(stri = str2); String hello - "hello"; String hel - "hel"; String lo. "10"; System.out.println(hello - "hel" + "10"); System.out.println(hello -- "hel" + lo); System.out.println(hel - "hel"); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
