title: Java - Can final variables be initialized in static initialization block?
body: <p>Based on my understanding of the Java language, static variables can be initialized in <code>static initialization block</code>.</p>
  
  <p>However, when I try to implement this in practice (<code>static</code> variables that are <code>final</code> too), I get the error shown in the screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/5I0am.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5I0am.jpg" alt="https://i.stack.imgur.com/5I0am.jpg"></a></p>