Java Identifiers

  • Identifiers are programmer defined tokens.
  • They are used fro naming classes, methods, variables, packages, and interfaces in a program.

Rules for a Legal Identifier :

  1. They can be a set of alphabet, digits, underscore ( _ ) and dollar ( $ ) character.

  2. They must not begin with digit .

  3. Since Java is case sensitive language, Uppercase and Lowercase letters are distinct.

  4. They can be of any length.

  5. They must not be a keyword.

Example of legal identifier :

     arena , s_count

Example of illegal identifier :

     2nd number

Next topic is Java-Literals


Training For College Campus

We offers college campus training for all streams like CS, IT, ECE, Mechanical, Civil etc. on different technologies like
C, C++, Data Structure, Core Java, Advance Java, Struts Framework, Hibernate, Python, Android, Big-Data, Ebedded & Robotics etc.

Please mail your requirement at

Projects For Students

Students can contact us for their projects on different technologies Core Java, Advance Java, Android etc.

Students can mail requirement at

(8AM to 10PM):

+91-8527238801 , +91-9451396824

© 2017,, All rights reserved