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 |
Explain about the dynamic behavior of core java?
Explain differences between collection api and stream api?
What is field name?
Difference between this() and super() ?
What do you mean by multithreaded program?
What is the synonym of framework?
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access?
What is runtime polymorphism or dynamic method dispatch?
What is the final class modifier?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is equals method in java?
How do you find the independent variable?