Is String.length() invoked for a final String?

Viewed 927

A quickie just to get peace of mind:
Considering the following

final String str = "This is the end";

Is str.length() evaluated at runtime or is it hardcoded as 15 in the bytecode?

3 Answers
Related