title: How JUnit manages running @BeforeClass only once which is defined inside the test class
body: <p>I very much understand what <code>@BeforeClass</code> is. It is executed once before JUnit test run is started &amp; <code>@Before</code> method is executed before every test case.
  My question is regarding a very old post by a very senior stackoverflow user (Péter Török
  68.8k) Please refer [stackoverflow question]
    [1]: <a href="https://stackoverflow.com/questions/6094081/junit-using-constructor-instead-of-before/6094143#6094143">JUnit: using constructor instead of @Before</a> which was posted about 2 yrs ago but on JUnit4. so I think it is still valid and true.</p>
  
  <p>Here he mentions </p>
  
  <blockquote>
    <p>@Before is equivalent to constructor of test class</p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>JUnit creates a new instance of the test class for each @Test,</p>
  </blockquote>
  
  <p>So how does JUnit manage running <code>@BeforeClass</code> only once which is defined inside the test class?</p>