while reading i came across this block of code
public class unspec
{
{
System.out.println("Hello");
}
unspec()
{
System.out.println("Hello World");
}
public static void main(
String args[])
{
unspec us=new unspec();
}
}
this block of code compiles and the unnamed block is executed first,even before constructor.
What is this block and what is its purpose.
please guide me