Which characters are allowed to use as the second character
of an identifier, and which characters are not allowed?

Answer Posted / ranganathkini

The following are the attributes of the character that is
part of a Java identifier but not as the first character:

* it is a letter
* it is a currency symbol (such as '$')
* it is a connecting punctuation character (such as '_')
* it is a digit
* it is a numeric letter (such as a Roman numeral character)
* it is a combining mark
* it is a non-spacing mark

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an empirical question?

537


What is empty list in java?

619


Is passing by reference faster?

519


How do you clear a method in java?

536


What is static variable with example?

556






Is 0 a prime number?

568


What is the difference between compare and compareto in java?

489


What is a functional interface?

543


What is the difference between the prefix and postfix forms of the ++ operator?

552


Why string is a class?

542


Give the difference between the println method and sqrt method?

621


What is better- service oriented or batch oriented solutions?

1524


What is token in java?

533


Whats the difference between notify() and notifyall()?

564


What is the advantage of preparedstatement over statement?

557