Identifiers rules in java

Identifiers tell you, how to construct name of class , method , variable , package , interface etc.

Identifiers rules:

1)Identifier can have numbers but can’t start with number





2)Only two symbols are allowed i.e doller($) and underscore( _)




3)Identifier must not have space





4)Identifier can’t be a keyword

You may also like...

Leave a Reply