A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Java Identifiers

Java Identifiers

What are Java Identifiers?

  • All the java components require names and these names used for classes, variables and methods, so that these are called identifiers.

  • In java, there are several points to remember about identifiers.

  • All these identifiers should begin with a letter (A to Z or a to z ), currency character ($) or an underscore (_).

  • After the first character identifiers can have any combination of characters. A keyword cannot be used as an identifier. Most importantly identifiers are case sensitive.

Examples of legal Java identifiers :-

  • abc

  • $salary

  • _value

  • __1_value

Examples of illegal Java identifiers :-

  • 123abc

  • -salary












LEARN TUTORIALS

.

.