Describe how a string is a reference and how a string comparison is done.
What will be an ideal response?
As an object, a String variable name is not a simple data type-it is a reference; that is, a variable that holds a memory address. Therefore, when you compare two Strings using the == operator, you are not comparing their values, but their computer memory locations.
You might also like to view...
Pandora is the most popular web browser for people using Macs
Indicate whether the statement is true or false
When using Windows, to select all the folders in a window you simultaneously press the ________ and A keys
A) Alt B) Ctrl C) cmd D) Shift
"Mutator" methods are also called "set" methods.
Answer the following statement true (T) or false (F)
Match the menu and dialog box elements to their descriptions:
I. Check box A. Displays next to a command name to indicate that when you click the command, a dialog box will display. II. Ellipsis (...) B. Two or more keys pressed at the same time and used as a method to select commands. III. Shortcut key combination C. An area that you click to select, or click to clear, an option. IV. Option button D. With a dialog box, a page with a darker name that displays a related group of commands and options. V. Active tab E. An area that you click to select only one of a mutually exclusive set of options.