D

Deepak Sahoo • 10.78K Points
Tutor II

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

  • (A) 123abc
  • (B) _abc123
  • (C) abc-123
  • (D) 123-abc
  • Correct Answer - Option(B)
  • Views: 180
  • Filed under category JAVA

Explanation by: Deepak Sahoo
Java identifiers can start with a letter, underscore or dollar sign.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics