This question came up in Spring class, which has some rather long class names. Is there a limit in the language for class name lengths?
Java – Does Java have a limit on the class name length
javaname-length
Related Topic
- Java inner class and static nested class
- Java – How does the Java ‘for each’ loop work
- Java – the difference between public, protected, package-private and private in Java
- Java – Why does Java have transient fields
- Java – Does Java support default parameter values
- Java – a JavaBean exactly
- Java – Why is processing a sorted array faster than processing an unsorted array
- Java – the difference between canonical name, simple name and class name in Java Class
Best Answer
The Java Language Specification states that identifiers are unlimited in length.
In practice though, the filesystem will limit the length of the resulting file name.