What does final?

+2 Dave Luling · March 8, 2015
Can someone explain me what final  does?:) I watched video 48 but I still don't know what it does. 

Post a Reply

Replies

Oldest  Newest  Rating
+3 Branislav Lazic · March 8, 2015
"final" keyword has multiple meanings in Java:


  • final variable - you cannot assign new values (constant)

  • final method - cannot be overriden

  • final class - cannot be extended

+1 Roman Smirnov · March 8, 2015
final just means the value is set and can't be changed later inside the code.
  • 1

Java / Android Development

107,146 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator