Final Keyword in Java Lecture by Ritu Kumawat
Final keyword can be used: 1.With class name 2.With method name 3.With variable name Uses of final Keyword: 1. To prevent Inheritance: If we want to prevent a class from being …
Faculty: Education B.Ed. II Year(III Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Knowledge & Curriculam Click Here 2 Contemporary Indian and Education Click Here
Faculty: Education B.Ed. I Year(I Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Child Development and Growing Up Click Here 2 Contemporary Indian and Education Click Here 3 …
Faculty: ARTS B.A. III Year(VI Semester) Model Papers Sr. No. Paper Name Question Paper Link 1 Economics Click Here 2 English Literature Click Here 3 Geography Click Here 4 Political Science …
Final keyword can be used: 1.With class name 2.With method name 3.With variable name Uses of final Keyword: 1. To prevent Inheritance: If we want to prevent a class from being …
Final keyword can be used:
1.With class name 2.With method name 3.With variable name
Uses of final Keyword:
1. To prevent Inheritance: If we want to prevent a class from being inherited then we use final keyword.
2. To prevent Overriding: If we want that method should not be overridden by sub class then we use final keyword..
3. To make the value of variable as constant: If we make the variable final then this will be treated as constant its value remains unchanged.
When two or more functions have same name but different parameter list then this concept is called method overloading.Number,type and order of parameters can be different.Return type of method can be …
When two or more functions have same name but different parameter list then this concept is called method overloading.Number,type and order of parameters can be different.Return type of method can be same or different.It is a mechanism to achieve polymorphism in javaWhen we want to perform different task from one method then we use concept of overloading
