String x= “”;
String x= String.Empty;
String.Empty will assign reference of memory each time. When you provide value to variable memory is allocated to that variable.
In other case each time memory will be allocated.
String x= “”;
String x= String.Empty;
String.Empty will assign reference of memory each time. When you provide value to variable memory is allocated to that variable.
In other case each time memory will be allocated.