title: Omitting public modifier in java methods
body: <p>I am learning Java and there's something bothering me and the textbook doesn't explain it.</p>
  <p>I understand that you use modifiers to declare methods inside classes and all. But I suddenly got to a class declared like</p>
  <pre><code>static void(){
  }
  </code></pre>
  <p>Why is there no public or private modifier and it still works? Can I avoid using the public modifier everywhere else or how does that work? I understand that static means member of the class and void that it doesn't return a value. Yet why not public or private for that matter.</p>