title: Why can't save uri object while building a uri?
body: <p>The first snippet won't append the 'locationQuery' paramenter, but the second one will, why the difference?</p>
  
  <p>First snippet:</p>
  
  <pre><code>Uri builtUri = Uri.parse(FORECAST_BASE_URL);
  builtUri.buildUpon()
          .appendQueryParameter(QUERY_PARAM, locationQuery)
          .build();
  </code></pre>
  
  <p>Second snippet (From udacity course <a href="https://github.com/udacity/ud851-Sunshine/blob/6ca736c2395e1893e9dc82373141a38342e78238/S02.01-Solution-Networking/app/src/main/java/com/example/android/sunshine/utilities/NetworkUtils.java#L73" rel="nofollow noreferrer">github</a>):</p>
  
  <pre><code>Uri builtUri = Uri.parse(FORECAST_BASE_URL).buildUpon()
                    .appendQueryParameter(QUERY_PARAM, locationQuery)
                    .build();
  </code></pre>