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

Can we override constructor in java?

0 Answers  


Is boolean a wrapper class in java?

0 Answers  


What modifiers may be used with an inner class that is a member of an outer class in java programming?

0 Answers  


In Serialization, whether you will use Static variables?

3 Answers   HCL,


What are variable names?

0 Answers  


Compare java and python.

0 Answers  


Write a code to show a static variable?

0 Answers  


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

0 Answers   Rolta,


What is the final blank variable?

0 Answers  


Is singleton class immutable?

0 Answers  


how can i take the inputs from users in java program?

7 Answers   Wipro,


Does variable declaration allocate memory?

0 Answers  


Categories