Explain how to declare and initialize a String in Java. Provide an example of declaring a String variable and initializing it with a value.
Describe how to concatenate two Strings in Java. Provide an example that concatenates two String variables.
Explain some common String methods in Java, such as length()
, substring()
, and toUpperCase()
. Provide examples of how these methods are used.