1 / 4

final keyword

Final is a modifier that provides restrictions in Java

quipoin
Download Presentation

final keyword

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Final Keyword Keywords in JAVA

  2. Overview Final is a modifier that provides restrictions in Java.

  3. Program class FinalVariable { public static void main(String[] args) { final int X = 5; X=10; //gives error as re-assignment is not permitted System.out.println(X); } }

  4. Types The final keyword can be used in all below levels: variable method class

More Related