Quiz
Why Integer.parseInt(String) is static ?
What would be the output of the following code?
public class TestEquality {
public static void main(String[] args) {
String string1 = new String("Equality”);
String string2 = new String("Equality”);
System.out.println("string1 == string2");
if (string1.equals(string2))
System.out.println("string1 equals string2");
Does it make sense to null terminate ‘\0’ a String in Java?