Programming Equivalence vs. Equality in Java String Strings are one of the basic data types used in any programming language. Whether displaying text to a user or gathering input, strings will likely be part of that program.