Q. Which of the following is a valid Java identifier?

  • (A) 123abc
  • (B) _abc123
  • (C) abc-123
  • (D) 123-abc
πŸ’¬ Discuss
βœ… Correct Answer: (B) _abc123
Explanation: Java identifiers can start with a letter, underscore or dollar sign.
Explanation by: Deepak Sahoo
Java identifiers can start with a letter, underscore or dollar sign.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
274
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Deepak Sahoo
Publisher
πŸ“ˆ
96%
Success Rate