I have a little problem with the Exception Handling in Singleton. Perhaps I can get help from one of you? I have created the source code of the private constructor can throw an exception. I'm getting now in the declaration line of "test" the error message that said to catch the exception or pass. But how does it work? I also tried the initialization in a static block (then try / catch to make), but then I get the error the "test" may not be initialized. So please anyone knowing some solutions about this, help me.!!
Bookmarks