Final apply on class:

final class company{
    int employeeid;
    String employeename;
   
   void  userprofile(int id,String name){
    System.out.println("Id of Employee "+id+" "+"Name of Employee "+name){
  }
}
      

class Employee{
    int employeeid;
    String employeename;
	   
    void  userprofile(int id,String name){
     System.out.println("Id of Employee "+id+" "+"Name of Employee "+name){
	}
		
	public static void main(String args[]){
	   Employee e=new Employee();
	   e.userprofile(101,"bhanu");
   }
}
          

output:
compile time error// final class is not inherit
          

Address

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