Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Can we have static initializer Block in EJB ?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2014/04/22
ch Abdul Ahad
by ch Abdul Ahad , Java Developer , Clixosoft

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 .

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.