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

Answers were Sorted based on User's Feedback



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

Answer / vijayakumar chinnasamy

The Second letter may be
Alphabetic letters - a to z ot A to Z
Numerals - 0 to 9
Only special character $,_ and Euro currency symbols

Is This Answer Correct ?    2 Yes 0 No

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

Answer / 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

More Core Java Interview Questions

What does it mean to flush a file?

0 Answers  


What is the benefit of inner / nested classes ?

0 Answers  


What is java basic concept?

0 Answers  


What is the difference between Java and C++?

0 Answers   Integreon, TCS, ZS Associates,


What is the nested interface?

0 Answers  






What is module with example?

0 Answers  


What is a function in java?

0 Answers  


What are the types of literals?

0 Answers  


What is singleton math?

0 Answers  


what are Checked & Unchecked exceptions ?

2 Answers  


Explain the private protected method modifier?

0 Answers  


What is java Applet?

0 Answers   TCS,


Categories