Your code is a StackOverFlowError waiting to happen though.
You class "chk" has a field of the same type. You initialize that immediately. Therefore, the following will happen: - you create chk #1 - this will automatically create chk #2 - this will automatically create chk #3 - this will automatically create chk #4 - this will automatically create chk #5 ...
This will continue on forever - until the error is thrown.