During compilation, the values of each case of a switch statement must evaluate to avalue that can be promoted to an int value.
A compilation unit is a Java source code file.
A Java package is a naming context for classes and interfaces. A package is used tocreate a separate name space for groups of classes and interfaces. Packages are also usedto organize related classes and
During compilation, the values of each case of a switch statement must evaluate to avalue that can bepromoted to an int value.
A compilation unit is a Java source code file.
A Java package is a naming context for classes and interfaces. A package is used tocreate a separate namespace for groups of classes and interfaces. Packages are also used to organize relatedclasses and
choice:a)compilation errorb)runtime errror Or what is the result?
Latest Answer : it will result in a compilation error because first thing is that you have not written method body ,else if you don't want to write method body then declare it abstract and terminate it using semi colon. ...