This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi I have a requirement where I need to initialize a final static member variable of a class, but the method which is used to initialize it, throws an exception. The code below may help to understand the issue:
How should I code so that I am able to initialize the final static variable?