fred rosenberger wrote:The first step is always to forget about java.
If I handed YOU a piece of paper with "4N, 5E, 2N, 3E, 6S, 8W", how would YOU find the area?
Tell us in English, step by step.
gurpeet singh wrote:Except D and F all are right
when you do java -ea Two, this means that you are enabling assertions for all classes. in your case it will enable assertion on Two as well as one
when you do java -ea:One Two, here you are enabling assertion on only class named One and disabled for class Two. so -ea:one means enable assertions on one, while running Two.
also when we do java -ea:com. Two , this means enable assertions on the package com and all its subpackages.
also suppose class Two is in a package com.guru and you do java -da:com -ea:Two Two, then assertions will be enabled for class Two, because the jvm sees the most specific setting for a class.