The following questions will test your knowledge of the care and feeding of a string.
My friend concatenates. Should I report him to the authorities?
No. It's only illegal during the winter months.
Yes, but not until I sell the story to Real TV first.
No. All he's doing is pasting two strings together in a program.
Why is the word String capitalized, while int and others are not?
String is a full word, but int ain't.
Like all objects in Java, String has a capitalized name.
Poor quality control at Sun Microsystems.
Which of the following characters will put a single quote in a string?
c. Concatenation is just another word for pasting, joining, melding, or otherwise connecting two strings together. It uses the + and += operators.
b. The types of objects available in Java are all capitalized, which is the main reason variable names have a lowercase first letter. It makes it harder to mistake them for objects.
b. The single backslash is what begins one of the special characters that can be inserted into strings.