?Give a code example of using the equivalence operator ("==") to compare the addresses of two strings where the comparison will result in the value true. The example should produce output indicating the strings have the same value.
What will be an ideal response?
?string stringA="Hello";string StringB="Hello";if(stringA==stringB) System.out.println("stringA has the same address value as stringB");
Computer Science & Information Technology
You might also like to view...
When a document has been marked as final, [________] displays in the title bar after the file name
Fill in the blank(s) with correct word
Computer Science & Information Technology
Case AC 4-1Jessica wants to find and replace some data in her database.If Jessica types S in the Find What list box, and then selects the Whole Field option in theMatch menu, she'll find values that ____.
A. contain the letter S anywhere in the value B. contain only the letter S C. begin with the letter S D. none of the above
Computer Science & Information Technology