Skip to main content

Posts

Showing posts with the label Java Identifiers

PROGRAMMING IN JAVA ||UNIT 1- DECLARATIONS AND ACCESS CONTROL||JAVA IDENTIFIERS & KEYWORDS

 II BCA -  CORE PAPER 3 PROGRAMMING IN JAVA UNIT 1- DECLARATIONS AND ACCESS CONTROL JAVA IDENTIFIERS & KEYWORDS Java Identifiers ·         An Identifiers is a name given to program elements such as class, variable, field, method, or constructor. ·         In Java programming language an identifier is a sequence of alphabets or digits. ·         The two aspects of Java identifiers are o    Legal identifiers: The rules the compiler uses to determine whether a name is legal. o    Oracle's Java Code Conventions:   Oracle's recommendations for naming classes, variables, and methods. Legal Identifiers Technically, legal identifiers must be composed of only Unicode characters, numbers, currency symbols, and connecting characters (such as underscores). The rules for Legal Identifiers: o    Identifiers must start with a letter, a currency character ( $ ), or a connecting character such as the underscore ( _ ). o    Identifiers cannot start with a digit! o