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
     marks40
     class_one

Example of illegal identifier :

     1sst
     2nd number
     oh!god

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 info@prowessapps.in


Projects For Students

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

Students can mail requirement at info@prowessapps.in



CONTACT DETAILS

info@prowessapps.in
(8AM to 10PM):

+91-9026070669 , +91-9451396824

© 2016, prowessapps.in, All rights reserved