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


Please Help Members By Posting Answers For Below Questions

Explain about class in java?

807


What is object in java?

733


Why are pointers not secure?

763


What is the difference between size and length in java?

707


How would you dynamically allocate memory to an array?

771


What is the full form of jpeg?

705


What are nested classes in java?

799


What is covariant return type?

825


What is java used for?

759


What is a top level class in java?

720


What are the important features of Java 11 release?

767


Explain the difference between a Thread and a Process.

760


Difference between arraylist and vector.

792


Why synchronization is important in java?

766


What does sprintf return?

782