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

A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

0 Answers  


What is the abstract class?

0 Answers  


what is wrapper class and its uses?

2 Answers  


How does map works in java?

0 Answers  


What is escape analysis algorithm in JVM and how garbage collection actually worked n how it transfer the objects from one kind of space to other?

0 Answers  






can used Protected Class outside Function.?

0 Answers   HCL,


What is the difference between JVM and JRE?

0 Answers  


Are arrays immutable in java?

0 Answers  


What is integer parseint?

0 Answers  


What's the difference between comparison done by equals method and == operator?

0 Answers  


What are different data types?

0 Answers  


What are different types of states exist for a thread?

0 Answers  


Categories