Identify legal Java identifier
Answers
Answered by
29
Identifiers are legal only if-
- There is no space present.
- The name is not a keyword.
- The name must not starts with a digit.
- It must not contain special characters other than dollars and underscores.
Answered by
0
Answer:
isLetter(ch) returns true.
getType(ch) returns LETTER_NUMBER.
the referenced character is a currency symbol (such as '$')
the referenced character is a connecting punctuation character (such as '_').
Explanation:
Similar questions