Question: What is output by the code below? String a = aplus; String b = a; b = null; System.out.println( a ); a. aplus b. null
What is output by the code below?
String a = "aplus";
String b = a;
b = null;
System.out.println( a );
| a. | aplus |
| b. | null |
| c. | comp |
| d. | apluscomp |
| e. | This is no output due to a runtime error. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
