You cannot use the java keyword in your package declaration.
abstract continue for new switch assert default if package synchronized boolean do goto private this break double implements protected throw byte else import public throws case enum instanceof return transient catch extends int short try char final interface static void class finally long strictfp volatile const float native super while
These keyworkds cannot be used.
package declaration syntax
PackageDeclaration: {PackageModifier} package Identifier {. Identifier} ;
Here, identifiers are any Unicode character that is a "Java letter" or any Unicode character that is a "Java letter or number."
"Java letters" include uppercase and lowercase Latin letters ASCII AZ (\ u0041- \ u005a) and az (\ u0061- \ u007a), and for historical reasons, the underscore is ASCII (_, or \ u005f) and the dollar sign ($, or \ u0024). The $ sign should only be used in mechanically generated source code, or, less commonly, to access existing names in legacy systems.
Contact
source share