What does Static {} mean in the Java Syntax?

后端 未结 7 1245
野趣味
野趣味 2020-12-13 13:49

I came across this Java code:

static {
    String aux = \"value\";
    try {
        // some code here
    } catch (Exception e) { }
    String UUID_prefix =         


        
相关标签:
7条回答
  • 2020-12-13 14:17

    This is a static initializer.

    0 讨论(0)
提交回复
热议问题