

InterviewSolution
Saved Bookmarks
1. |
What is an identifier? what is the identifier forming rule of Java |
Answer» Identifiers or User Define Words:-Identifiers will be used as class variables methods etc while naming the identifiers or user define words remember the following paths-1. Keywords cannot be used as identifiers.2. Identifier must not start with any numeric or it is always recommendable to starts some of the identifiers with small case.3. It must not contain any special symbol other than (_ or $).4.Identifier must not contain any blank space in between.5.Identifiers may contain numeric but it should not be in starting.For e.g. –int ab; //okint a_b; //okint a b; // not okclass\xa0Hello{int\xa0a;int\xa0ab; | |