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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!