This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi.. pl help me with the foll qn. How many String literals are created when the foll code is executed and run? String s1, s2,s3,s4 ; s1 = "hello"; s2 = s1; s3 = s2+"pal"; s4 = s3; A. 1 B. 2 C. 3 D. 4 E. Can't say IMO since only s1 and s3 are created,and the rest are assigned, the answer is B. Am I right? please help me.. thanks, Ramani.