What is the minimum and maximum length of an identifier?
Answers were Sorted based on User's Feedback
Answer / manu
There is no limit to the length of an identifier in Java.
It will start with letter or _ or $
| Is This Answer Correct ? | 18 Yes | 4 No |
Answer / jai
From a language specification perspective, there is no
limit. From a class file perspective, there is a 64K byte
limit to names. For ASCII identifiers, that would be 65535.
For identifiers beyond the ASCII range, that could be
considerably less, as they are stored in Unicode Transfer
Format (UTF), taking up from 2-3 bytes / character.
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / manu
There is no limit to the length of an identifier in Java.
| Is This Answer Correct ? | 9 Yes | 4 No |
Answer / sohan
Some compilers take 8 bit atmost.But max length is 31.(in
case of C)
| Is This Answer Correct ? | 3 Yes | 9 No |
What is Applet Stub Interface ?
Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?
Which java.util classes and interfaces support event handling?
How will you load a specific locale?
Difference between static methods, static variables, and static classes in Java.
What is number data type?
Can singleton class be inherited in java?
Is treeset sorted in java?
What is classname class in java?
What is constructor and virtual function?
What if I write static public void instead of public static void in java?
What is another word for methodology?