Example

public static void main(String[] args){
String str = new String("Example"); //$NON-NLS-1$
System.out.println(str);
}


Solution
Remove the call to new
  1. Replace String x = new String( value ) call with 'String x = value'

public static void main(String[] args){
String str = "Example"; //$NON-NLS-1$
System.out.println(str);
}