Computer Science, asked by Anonymous, 9 months ago

define IDENTIFIERS??
among the following which are the valid and the invalid identifiers:-
a. my variable
b. x_variable1
c. Fruits
d. Var_&_Num

Answers

Answered by Oreki
4

Identifiers are the names of variables, methods, classes, packages and interfaces. Variable names can include any alphabetic character or digit, underscore ( _ ) and the dollar sign ($).

Answer:

  • my variable - Invalid, whitespace not allowed
  • x_variable1 - Valid
  • Fruits - Valid
  • Var_&_Num - Valid
Similar questions