Final :

Final is keyword which apply restriction in JAVA.

Final apply on:
1)Data types----------> value cannot be changed once declared.
2)Method-------------->method cannot override in child class.
3)class--------------->final class is not inheritance

Final apply on data types:

student.java

class student{
    final int marks=99;
	  
	void change(){
	  marks=50;// once declare final datatype cannot be changed
	}
		
	void show(){
	 System.out.println(marks);
	}

	public static void main(String args[]){
    student s=new student();
	s.show();
   }
}
          

output:
Compile time error
          

Address

Plot number-56/1
Near Gurudwara
LandMark :
Opposite A.N.D college
Govindpuri Metro station
New Delhi
Mobile number:
8826034620