Line 15 will assign 17 to the static variable x every time a new instance of the class is created. While kind of an odd thing to want to do, it is a logical possibility.
Line 10 does not make sense, the static initializer runs when the class is loaded into memory, an instance does not have to be created and y is an instance variable.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: static and instance initialization blocks