Advertisements
Advertisements
Question
It is not a valid identifier:
Options
name_
name$
_name
+name
MCQ
Advertisements
Solution
+name
Explanation:
- An identifier cannot start with special symbols like '+'; therefore, '+name' is not a valid identifier.
- name_, name$, and _name are valid identifiers (in Java).
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 43]
