Monday, August 22, 2011

Java Interview Question

Why can't interfaces have static blocks?

1 comment:

  1. Static blocks are initialized before the constructor is called. As the interface cannot be instantiated it so it cannot have static blocks

    ReplyDelete