What is the minimum and maximum length of an identifier?

Answers were Sorted based on User's Feedback



What is the minimum and maximum length of an identifier?..

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

What is the minimum and maximum length of an identifier?..

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

What is the minimum and maximum length of an identifier?..

Answer / manu

There is no limit to the length of an identifier in Java.

Is This Answer Correct ?    9 Yes 4 No

What is the minimum and maximum length of an identifier?..

Answer / guest

1-32

Is This Answer Correct ?    8 Yes 6 No

What is the minimum and maximum length of an identifier?..

Answer / prayothana

There is no length

Is This Answer Correct ?    6 Yes 5 No

What is the minimum and maximum length of an identifier?..

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

Post New Answer

More Core Java Interview Questions

Explain static nested classes ?

0 Answers  


What is purpose of find feature?

0 Answers  


What is variable and rules of variable?

0 Answers  


Why is a singleton bad?

0 Answers  


what is polymorphism?

5 Answers   Zensar,






What is the use of static import ?

4 Answers   Rolta,


How can we make string upper case or lower case?

0 Answers  


Is main is a keyword?

0 Answers  


What does it mean to be immutable?

0 Answers  


After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?

5 Answers   Aricent,


What is a type parameter in java?

0 Answers  


Different types of modifiers?

8 Answers   RoboCom,


Categories