Hello Folks,
For the following question the answer is �A�,�B� and �D�. I agree with the answer �B� and �D�. But I won�t agree with the answer �A� because the �A� is already disabled by assertion. Pls let me know, If am I missing anything.
Thanks, Raghu.K
Question: -
The package favorite.fruits contains different classes for different fruits. Mango and Apple are in this package. Pineapple and Orange are in the package citrus, which is a sub package of favorite.fruits. Assume that all these classes are compiled with
Assertions enable. Given the following command at the command prompt, which of the following classes would have assertions enabled?
java -ea:favorite.fruits... -da:favorite.fruits.Apple favorite.fruits.Mango Answer:-
A) favorite.fruits.Mango
B) favorite.fruits.citrus.Pineapple
C) favorite.fruits.Apple
D) favorite.fruits.citrus.Orange
E) net.util.FTPMan