title: Best Programming Practice for using packages(Java)
body: <p>Which one is better to do...
  importing package or using them directly inside a method</p>
  
  <p>for eg:-</p>
  
  <pre><code>import java.util.Arrays;
  int arr[] = new int[10];
  Arrays.sort(arr);
  </code></pre>
  
  <p>Is the above one better?
  -----(OR)-------</p>
  
  <pre><code>int[] arr = new int[10];
  java.util.Arrays.sort(arr);
  </code></pre>
  
  <p>According to me both perform same thing...
  But I wanted to know which of these is the best programming practice...</p>