title: How are classes loaded in JVM?
body: <p>Let’s say that I run a program I made that uses four different classes (denoted with <code>public class ExampleClass1{*code inside*}</code>) in their own <code>.java</code> files.</p>
  <p>Do all four of these classes get stored in the <em>Method Area</em> of the <em>Heap</em> on start-up?</p>
  <p>Or does only the class that with the main method that I ran get stored into the Heap on start-up and the other three classes wait to get stored, until they have code that needs to be run inside of them (i.e. object creation using their constructors, and using the object's methods)?</p>