Check out example codes for "java final modifier on method". It will help you in understanding the concepts better.

Code Example 1

public class Shape {
  private int numberOfVertices;
  
  //with final modifier,
  //this method cannot be overridden by subclasses
  public final int getNumberOfVertices() {
    return numberOfVertices;
  }
}

Learn ReactJs, React Native from akashmittal.com