Complete Solutions| Latest Update
The term that programmers use to describe objects that cannot be changed is _____.
✔️✔️immutable
Suppose that you declare two String objects as:
String word1 = new String("happy");
String word2;
When you ask a user to enter a value for word2, if the user types "happy", the value of word1
== word2 is _____. ✔️✔️false
If you declare two String objects as:
String word1 = new String("happy");
String word2 = new String("happy");
the value of word1.equals(word2) is _____. ✔️✔️true
The method that determines whether two String objects are equivalent, regardless of case, is
_____. ✔️✔️equalsIgnoreCase()
If a String is declared as:
String aStr = new String("lima bean");
then aStr.equals("Lima Bean") is _____. ✔️✔️false
If you create two String objects:
String name1 = new String("Jordan");
String name2 = new String("Jore");