+ 2

Do long identifiers in java, have any negative effect on program performance?

e.g if i write int firstNumber=22; instead of int fn=22; do it have any bad effect on performance? sorry for bad English.

16th Dec 2017, 4:54 PM
sal sal
sal sal - avatar
4 Respostas
+ 2
no , there will be no impact on performance...
16th Dec 2017, 5:35 PM
shashank singh
shashank singh - avatar
+ 1
It will not affect the overall performance of the code, but it might make it more difficult to understand the code for other programers. They may not know what "fn" represents. The code will run normally, but it will look differently (obviously). I hope this helps.
16th Dec 2017, 8:16 PM
Justin Bornais
Justin Bornais - avatar
+ 1
using a long identifier do not effect performance? e.g int firstNumber=1;
17th Dec 2017, 4:17 AM
sal sal
sal sal - avatar
+ 1
justin ur answer is confusing.
17th Dec 2017, 4:18 AM
sal sal
sal sal - avatar