public class Java02 {
public static void main(String[] args) {
// final关键字:3种用法
// final修饰变量:表示常量、不能被修改的。
// final修饰类:不能被继承。
// final修饰方法:不能被覆盖。
// final int a = 2;
// a = 5;
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.