Reading
Add Comment
Final:
Keyword
Final variable: Its value can't be changed once its declared even using constructor:
Final method: Final method can't be overload.i.e. If child class wanna to use final method of its parent than it will show compile time error.
Final class: If you make any class as final, you cannot extend it.
Source:Link
keyword
Keyword
Final variable: Its value can't be changed once its declared even using constructor:
Final method: Final method can't be overload.i.e. If child class wanna to use final method of its parent than it will show compile time error.
Final class: If you make any class as final, you cannot extend it.
Source:Link
0 comments:
Post a Comment