class Final { public static void main(String[] args) { final int a=20;// fial value now it cannot be changed System.out.print(a); a=20;// cannot assinged once again System.out.print(a); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter