What\'s the difference between initialization within a static block:
static
public class staticTest { sta
When you want to evaluate any certain expression while class loading time then you can make use of static block but remember:
You must handle an exception in static block meaning you cannot throw an exception from a static block.