Static Block in Java

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-05-31T12:38:30Z Indexed on 2010/05/31 12:42 UTC
Read the original article Hit count: 260

Filed under:
|

I was looking over some code the other day and I came across:

static {
    ...
}

Coming from C++, I had no idea why that was there. Its not an error because the code compiled fine. What is this "static" block of code?

© Stack Overflow or respective owner

Related posts about java

Related posts about static