What is the minimum and maximum length of an identifier?
Answer Posted / 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 |
Post New Answer View All Answers
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
Can we have multiple classes in single file ?
How many types of classes are there in java?
Explain java heap space and garbage collection?
What happens if a constructor is declared private?
Why strings in java are called as immutable?
What is an example of a keyword?
What is floor math?
How many types of the indexof method are there for strings?
Can two objects have same hashcode?
What are the advantages of exception handling?
What is a wrapper method?
What is the purpose of static methods and variables?
Is integer passed by reference in java?
What is the string function?