I have got this very basic doubt for questions involving assertions.Will the question explicitely tell that the assertions are enabled or not??? And if it is not mentioned ,should we assume the default behavior that assertions are disabled and select the corresponding output?
Should we select the outptut "finished" assuming that assertions are disabled?
Hi Anjali, Yes, as far as I think you should stuck on to the default behaviour of the assertions until and unless it is explicitly stated that code is compiled and run with assertions enabled. Otherwise you should just ignore assertions. But mind you if you are going for SCJP 5.0, so keep in mind that in JDK 1.5 assertions are automatically enabled while compiling, ie. you dont have to use the flag -source 1.4 or -source 1.5.
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
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: basic confusion for dealing with assertions!!