hi all (once again ) in velmurugan notes it is given that static initializer cannot pass on the checked exceptions. they have to catch and handle them... i am not sure what does it means.. can anybody tell me about this.. thanks in advance bye
Where in the notes is that printed? Maybe mine is outdated... Look in the API for "ExceptionInInitializerError", which is suited towards dealing with exceptions in static initializers. Perhaps he is simply reminding that exceptions can be thrown in static initializers.
thanks vanitha, now it is clear.... but there is one more point which is not very clear to me... it is that "instance initializers can throw any exception in annonymous class" if u can tell me about this too it will be very useful...
There's a way to do it better - find it. -Edison. A better tiny ad: