+ 1

final and static

what is the difference between final and static?

22nd Jul 2017, 6:24 AM
lavanya mary
lavanya mary - avatar
1 Odpowiedź
+ 4
They are not very similar, 'final' marks an object as the final version so it can't be changed. 'static' makes an object accessible by static methods and in a static way.
22nd Jul 2017, 7:07 AM
ChessMaster
ChessMaster - avatar