KnowledgeBoat Logo
|

Computer Applications

What are the rules to assign a variable in a Java programming?

Values & Data Types Java

133 Likes

Answer

  1. Name of the variable should be a sequence of alphabets, digits, underscore and dollar sign characters only.
  2. It should not start with a digit.
  3. It should not be a keyword or a boolean or null literal.

Answered By

78 Likes


Related Questions