us Naim wrote:
So I don't need to use create the Array objects., when it Comes to String objects.
More accurate will be to say -- "no need to call explicitly constructor when you use String."
keyword is a sign of constructor (new object creation) -- whenever you see new
you can think of "new object created"
With Strings is the opposite -- in 99.9% cases you will use string literals, e.g.
Because second syntax:
2) will create +1 extra object on the heap memory (which will be just consuming your resources)
So, for strings use simple literals without new