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

which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

0 Answers   IBM,


What is difference between arraylist and list in java?

0 Answers  


What do you mean by stack?

0 Answers   Accenture,


Do I need java on my pc?

0 Answers  


How many ways can an argument be passed to a subroutine?

3 Answers   Technological University of the Philippines,






How many types of voids are there?

0 Answers  


what is life cycle of applet?

9 Answers  


how to handle exceptions in ejb?

0 Answers   Satyam,


What is the difference between throw and throws?

5 Answers   Cap Gemini,


What is a substitution variable?

0 Answers  


Why is the main method static in Java?

1 Answers  


Why chararray() is preferred over string to store the password?

0 Answers  


Categories