I came across this Java code:
static { String aux = "value"; try { // some code here } catch (Exception e) { } String UUID_prefix = aux + ":"; }
I am new to Java, please explain what is happening here.
This is a static initializer block. You must have found it in a class's body outside of any method. The static init block runs only once for each class, at classload time.