Register now or log in to join your professional community.
Basic Purpose of Static initializer block is to initialize some static fields before any execution of method or we can say creation of object. According to EJB Spec it’s a violation if static field are used and they are non final .