How many ways we can define String in Java? There are basically two ways to define the string: 1. String Literal: Created by using double quotes. JVM first checks the “String Constant Pool”.If the string already present in the same, a reference of the pooled instanced is returned. If no such string is present