Identifier-in-Java .

In this session i have discussed identifier in Java .


Identifier refers the name of variable , function , class etc . It is always user defined .


Rules for Writing Identifier

1-First letter of an identifier must be alphabet (underscore is also allowed)

2-Identifier can only contain letters, digits and underscores

3-White space is not allowed

4-Keywords can not be used as identifier .

5-Upper and lower case both allowed . The identifier written in lowercase differ from upper case .


    int sum
    

sum is the identifier of integer type .

Welcome to AndroidATPoint.

back image                     next image