[ReadingNotes] Search the links, static final in the java
2013-06-22 23:54
513 查看
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[ReadingNotes] Search the links, static final in the java
pre {
background-color: #2f4f4f;line-height: 1.6;
FONT: 10.5pt Consola,"Bitstream Vera Sans", Courier New, helvetica;
color:wheat;
}
.h3 {
margin-left: 10pt;
}
[ReadingNotes] Search the links, static final in the java
Find As You Type for the firefox
Press '/' will only find the links. And 'Enter' will activate the link.static, final in the Java
static 特性永遠會是一個唯一值!!
static可以透過類別直接存取使用!
相較於static,final的概念就容易了解許多!
可以用來宣告一個類別、函數、或者變數。
類別:當宣告在類別上時,該類別就無法被繼承!
函數:當一個函數被宣告為final時,則繼承他的子類別無法覆寫
變數:當一個變數被宣告為final時,意思是他是一個常數,是無法被修改的。
from http://blog.kenyang.net/2011/03/java-staticfinal.html
并且static变量在所有的派生类中共享:
Post by: Jalen Wang (转载请注明出处)
相关文章推荐
- the difference between final and static in java
- java 示例2——Get the class name in a static method
- Java运行时出现”the serializable class drawline does not declare a static final serialversio”
- How to implement the similar mechanism with Java final in c++?
- Static and Final In Java
- The Default Methods And Static Methods In Java Interface
- The serializable class XXXAcion does not declare a static final serialVersionUID field of type long XXAcation.java异常坚决办法
- java.lang.System 的in是final的,为什么要有public static void setIn(InputStream in)方法?
- java.lang.System 的in是final的,为什么要有public static void setIn(InputStream in)方法?
- Simplest way to serve static data from outside the application server in a Java web application
- the usage of key word "static" in java language
- think in java中的初始化,final,static,继承
- java语法:final和static
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the ...
- Java中static、this、super、final(1)
- Support in the Wild: My Biggest Elasticsearch Problem at Scale
- java学习:构造方法、static、final
- java面试遇到问题三 -----final关键字和static关键字
- 《Thinking in Java》第三篇笔记 Java中的static关键字解析