title: Java and static member/function access without object
body: <p>I am brand new to Java from a little of C++ and I am wondering what happens when I call a static method or access a static field without having an instance of the class:</p>
  
  <pre><code>class Foo {
      public final static Scanner _input = new Scanner(System.in);
  }
  
  class Bar {
      public final static Scanner _input = new Scanner(System.in);
  }
  
  ...
  
  SomeCode[Foo._input.nextInt()];
  </code></pre>
  
  <p>I can't imagine a temp object is created, but have no idea.
  Thanks</p>