Moguluri Ravi Kiran wrote:Dear Devaka Cooray
you said "There is no way"
& "WE SHOULD NOT"..
may i know ,why you said "we should not"..
is there any significant reason for that..
Because you try to instantiate a class from inside a static initializer block of this class.
This class is not initialized yet- it's not ready to be used.
This is like when your car is repaired in a garage, it is now without tires and oil, but you try to fire an engine and drive to home
- no way, it's impossible.