aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static block is not executing in a program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static block is not executing in a program" Watch "Static block is not executing in a program" New topic
Author

Static block is not executing in a program

Deepak Kumar Jha
Greenhorn

Joined: Feb 07, 2013
Posts: 17

[Added code tags - see UseCodeTags for details]

As i know before executing main method static block should be executed but in this case this block is not executing. ??
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4466
    
    8

As it happens, I've seen a similar question here recently. Have a look at http://www.coderanch.com/t/604889/java/java/Static-initialization-happening - it's the same explanation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Static block is not executing in a program