I took the exam on April 16th....rather late to ask a question, but this has been lurking on the back of my mind since that day!
I had a question on the exam about assertions....Moderators/Sherrifs/Bartenders - Don't freak out, I am not giving out the question
Anyway...I was given a snippet of code and I had to basically pick from options like :
a. "compiles and runs with so and so out put"
b. "compilation fails"
c. "runtime fails"
Anyway...the question did not say anything about how the code was compiled or run. I mean it did not say that we specifically compiled it with the -source1.4 flag. Nor did it say we enabled assertions.
I was a little confused how to approach this question. There seemed to be no compilation errors in the code. I also did not think there would be runtime errors. I was confused if I should have pick the option which would have the output as if assertions were enabled. Or should I have picked the option as if they were disabled.
I finally convinced my self to pick the answer which would have output the result as if assertions were disabled...cause they are disabled by default and if they did not specify in the question that they were enabled, I was just going to assume they were disabled. I have no idea if I was right or wrong. :roll:
I would really like to know....Plus it would help others who may be taking the exam soon.What should one assume on such a question in the exam?