What is the correct way to declare a String in Java?
String str = 'Hello';
String str = new String("Hello");
String str = String("Hello");
String str = Hello;
This question is part of this quiz :