Chapter 2 questions

Answer: e. Explanation: There are two ways to store a character string into a String variable, by constructing a new String using "new String(string value); " or by using an assignment statement, so either a or b will work. In c and d, we have variations where the String concatenation operator + is used. So all four approaches will work ... ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download