This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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?