title: XML string resources vs Java Constant Strings?
body: <p>I have a String is like <code>String data=&quot;apps&quot;;</code></p>
  <p>i know loading String in Android in two ways..</p>
  <p>First one is</p>
  <p>so it is a constant i defined it as</p>
  <pre><code>public static final String data=&quot;apps&quot;;
  </code></pre>
  <p>And another type is defing it in <code>res/vslues/strings.xml</code> file like..</p>
  <pre><code>&lt;string name=&quot;data&quot;&gt;apps&lt;/string&gt;
  &lt;string name=&quot;hello_world&quot;&gt;Hello world!&lt;/string&gt;
  </code></pre>
  <p>if i want to use it..</p>
  <p>for the first way <code>ClassName.data</code></p>
  <p>for second way  <code>context.getResources().getString(resourceid)</code></p>
  <blockquote>
  <p><strong>Question:</strong></p>
  <p>so now my question is I want to use same <code>String</code> in 30 times in different classes.And I have more number of variables.so which will load faster and take lesser memory in the above methods..</p>
  </blockquote>