Java strings are initialized to null if you don't set them to a value:
String str;
The value of the above string is null.
I see in code online people doing the following:
String str = null;
But isn't that redundant since it is set to null anyway? What is the best practice for initializing a string?