Multiple Choice

  1. Which of the statements below has no valid value for initializing a String variable?

  2. How do we call the special characters in a string that are preceded with a backslash \?

  3. What is an immutable object?

  4. How many String object will exist at the end of the following code block?

     String hello = "Hello";
     String world = " World";
     String bye = "Bye";
     String greeting = hello + world;
     String goodbey = bye + world;

Last updated