Does referencing a public final static string of class A in class B increase the size of the compiled class B?
<p>Assume the following classes:</p>

<pre><code>class A {
  public static final String someString = "thisIsSomeString";

  // then potentially lots of non static members and functions.

}

class B {
  void foo1() {
    String someStringFromA = A.someString;
  }

  // OR

  void foo2() {
     String someStringFromA = "thisIsSomeString";
  }

}
</code></pre>

<p>Here, <code>b.foo</code> sould be either <code>foo1</code> or <code>foo2</code>. The benefit of <code>foo1</code> is straightforward: only a single place to define the string name, if we need to change it, just change it here. But I have been told that using <code>foo1</code> would "import" somehow the code of A into B, so that the compiled class B could be potentially much larger using <code>foo1</code> instead of <code>foo2</code>. Is this true? I assumed using <code>foo1</code> would be equivalent to a C #define.</p>
