Java Identifiers: Definition, Syntax, and Examples

preview_player
Показать описание
#coding #identifiers #java #dsa
/**
* A name in java program is called Identifiers which can be used for identifications purpose
* ex. it can be method name, variable name, class name, label name
* rule 1 : except 53 keywords other all are Identifiers
* 1) IdentifierConventions
* 2) main
* 3) String
* 4) args
* 5) i
* 6) System, out, println these all are Identifiers
* now lets talk about Rules
* 1) only allowed char in identifiers
* a-z,A-Z,0-9
* special char allowed : _, $
* 2) identifiers can't start with digit - digits are comes under the second priority
* identifiers are always start with alphabets
* 3) identifiers are case-sensitive - java itself case-sensitive
* 4) there is no length limit for identifiers
* 5) can't use reserve words as identifies
* 6) we can use pre-define classes name as identifiers - but it reduces the readability and creates confusion
*/
Рекомендации по теме
join shbcf.ru