G
gk
Say,The package favorite.fruits contains different classes for
different fruits. Orange is one of the classes in this package. Assume
that all the classes from this package are compiled with assertions
enabled. The following will enable assertions at runtime for this
package, but will disable it for the class Orange, using standard JDK
1.4
java -ea:favorite.fruits... -da:favorite.fruits.Orange <Main Class>
i am confused with this syntax "<Main Class>"
what does it mean by "<Main Class>" here ?
does it have any special meaning ?
do they want to mean Orange has the main method in it ? so Orange is
the Main Class ?
do i need to type "<Main Class>" as above ?
different fruits. Orange is one of the classes in this package. Assume
that all the classes from this package are compiled with assertions
enabled. The following will enable assertions at runtime for this
package, but will disable it for the class Orange, using standard JDK
1.4
java -ea:favorite.fruits... -da:favorite.fruits.Orange <Main Class>
i am confused with this syntax "<Main Class>"
what does it mean by "<Main Class>" here ?
does it have any special meaning ?
do they want to mean Orange has the main method in it ? so Orange is
the Main Class ?
do i need to type "<Main Class>" as above ?