Home > DeveloperSection > Interviews > Would you initialize your strings with single quotes or double quotes?

Posted on    May-04-2012 8:14 AM

 1 Answer(s)
  1977  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    May-04-2012 12:00 AM

Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

Don't want to miss updates? Please click the below button!

Follow MindStick