title: please tell me when to use getInstance() method in java.
body: <p>When to use the getInstance() method in java and what is the meaning of getInstance(null)?</p>
  
  <pre><code>locationProvider = LocationProvider.getInstance(null); 
  </code></pre>
  
  <p>can anyone tell me the meaning of the above line?</p>