zoukankan      html  css  js  c++  java
  • java-final修饰符

    final是修饰符的一种
    1.意思是最终的
    2.final可以修饰:类(内部类,外部类)、变量(成员变量(类变量、实例变量)、局部变量)、方法(静态方法和非静态方法)
    3.它修饰后有什么不同 
        -修饰类:表示这个类不能被继承了,可以称为“太监类”
            例如:String System Math
        -修饰方法:表示这个方法不能被重写
        -修饰变量:表示这个变量的值不能被修改,即我们说的“常量”
    
    
    When nothing seems to help, I go look at a stonecutter hammering away at his rock, perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before. -- Jacob Riis
  • 相关阅读:
    记录相关操作
    mysql数据类型
    完整性约束
    表相关操作
    MySQL存储引擎
    库相关操作
    linux学习笔记2---命令cd
    linux学习笔记命令篇1---命令ls
    linux常用命令系列
    redis34--string 操作
  • 原文地址:https://www.cnblogs.com/xhwy-1234/p/12467727.html
Copyright © 2011-2022 走看看