B
B
Biaci_Anj2021-09-03 21:44:05
Java
Biaci_Anj, 2021-09-03 21:44:05

Should final (not static) variables always be capitalized?

I can just declare an object final or a primitive, should it be capitalized in that case (if static is not present)?

Does trying to make an object immutable equate to creating a constant and the object must be capitalized even if private.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-03
@Biaci_Anj

As far as I know, none of the styles require this. And no, an immutable variable and a constant are not the same thing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question