Please consider the following context (It is a snippet of Android code)
TextView tvTitle = findViewById(R.id.something);
// do stuff with 'tvtitle'
In this context suppose both final declaration and non-final declaration is okay and works fine.
My question is: Is there any performance advantage in declaring variables as final or not? I've seen in many places in codes that normal variables is defined as final. I know what the final key word does but I do not know performance consideration about this.
Any help would be highly appreciated. Thanks