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
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Explain about map interface in java?
Why do we need wrapper classes?
What is the instance of an object?
What is method overloading in JAVA? Why is it not present in C ?
What is tcp ip in java?
What are synchronized methods and synchronized statements in java programming?
What is finalize()? Is finalize() similar to a destructor?
What's the access scope of protected access specifier?
Explain what access modifiers can be used for variables?
Give me an example of array and linked list? Where they can be used?
What do you understand by private, protected and public?
What is string :: npos?
Why do we create public static method in java?
What is the size of an array?