Monday, November 15, 2021

Java final Keyword

 final is a non-access modifier applicable only to a variable, a method or a class.

        
If any variable is made as final, the value of that final variable cannot be changed(It will be constant).

·        If any method is made as final, that method cannot be override.

·        If any class is made as final, that class cannot be used to extend.

0 comments:

Post a Comment

Data Structures with C++



NET/SET/CS PG



Operating Systems



Computer Networks



JAVA



Design and Analysis of Algorithms



Programming in C++

Top