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 methods consisting of the serilizable interface?

3 Answers  


what is the default value of a variable char?(If not assigned)

4 Answers  


What is the basic concept of java?

0 Answers  


How to create an instance of a class if the class has private constructor?

3 Answers  


What is java developer skills?

0 Answers  






1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))

1 Answers  


Is intellij better than eclipse?

0 Answers  


How does predicate work in java?

0 Answers  


Is jdk required on each machine to run a java program?

0 Answers  


What are examples of modifiers?

0 Answers  


Difference between start() and run() method of thread class?

0 Answers  


why java main method is given as static method?

2 Answers  


Categories