update: I think i figured it out.... since the cstr calls for a var-args argument, namely int..., it's basically saying you can pass ZERO or more integers into the cstr... that's why this works!
//nailed it.
==============================================
Hi, I'm a little stumped by this one too.
According to SCJP 5.0 book by Kathy and Bert. ("the book") on page 129/130 (as mentioned):
If you want a no-arg cstr and you've typed any other cstr(s) into your class code, the compiler won't provide the no-arg cstr (or any other cstr) for you. In other words, if you've typed in a cstr with arguments, you won't have a no-arg cstr unless you typed it in yourself!
That's pretty clear if you ask me. Now on the mock exam the following code appears (it compiles just fine and runs) but why??
Here is the code:
[ July 29, 2007: Message edited by: Noam Wolf ]