title: @BeforeClass vs static{}
body: <p>I am writing some test cases using JUnit. I need to initialize some static variables which will be used for all the test cases in that class.</p>
  
  <p>For this I can use either</p>
  
  <ol>
  <li>Static initializer block or</li>
  <li>Static method with <code>@BeforeClass</code></li>
  </ol>
  
  <p>What are the advantages of using one over another?</p>