another questions:
Q1)--------------------------------------------------
Consider the following code:
Int [ ] a = [1, 2, 3];
Object o ="123";
String t = "12";
String w = t + "3";
Boolean b = o.equals (a);
Boolean b2 = o.equals (t);
Boolean b3 = o.equals (w);
Boolean b4 = (o == w);
Show the effect of executing this code by means of a diagram similar to that in Figure 2.2. Also explain how the code arrived at the results in b, bl, b2, and b3.
the figure as in the picture 21.jpg
-------------------------------------------------------------------------------------------------------------------
Q1)--------------------------------------------------
Consider the following code:
Int [ ] a = [1, 2, 3];
Object o ="123";
String t = "12";
String w = t + "3";
Boolean b = o.equals (a);
Boolean b2 = o.equals (t);
Boolean b3 = o.equals (w);
Boolean b4 = (o == w);
Show the effect of executing this code by means of a diagram similar to that in Figure 2.2. Also explain how the code arrived at the results in b, bl, b2, and b3.
the figure as in the picture 21.jpg
-------------------------------------------------------------------------------------------------------------------
Comment