Empty String

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.

Answer:

Yes.

Empty String

This is equivalent to saying that two blank sheets of paper are equal to each other. As far as the writing on the papers is concerned, both sheets have the same.

Of course, if one sheet has writing on it and the other one does not, then the sheets are not equivalent.

QUESTION 10:

Is the string "" equal to "grape" ?