由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 请问这样的声明表示什么呢?多谢大家
相关主题
Question about displaying ChineseHow big is the penalty for compile with debugging mode on?
simple swing question也问一个Eclipse的问题
为什么我这个html找不到applet class?QT is LGPL now
java compilation question刚刚开始学习java,麻烦帮我看一下我哪里错了行吗?谢谢
help on this scope question其实JSP也不错
Help with Tomcat for Eclipse v1.03问一个 java generic问题
ant javac error in eclipse 3.0?Java 求解2
Problem on ANT,JAVA,JSP,JSPPrecompilerjava image processing problem
相关话题的讨论汇总
话题: jlabel话题: label话题: final话题: nonothing话题: 被声
进入Java版参与讨论
1 (共1页)
n*******g
发帖数: 168
1
final JLabel label = new JLabel("nonothing")
这里的一个类实例被声明为final代表什么呢?
多谢!
g*****g
发帖数: 34805
2
Only means you can't assign label to another instance.
if you later on do
label = new JLabel("something"), it will yield compilation error.
You can do label.setxxx() and change its fields however.

【在 n*******g 的大作中提到】
: final JLabel label = new JLabel("nonothing")
: 这里的一个类实例被声明为final代表什么呢?
: 多谢!

n*******g
发帖数: 168
3
thanks :)

【在 g*****g 的大作中提到】
: Only means you can't assign label to another instance.
: if you later on do
: label = new JLabel("something"), it will yield compilation error.
: You can do label.setxxx() and change its fields however.

1 (共1页)
进入Java版参与讨论
相关主题
java image processing problemhelp on this scope question
怎么样根据文件来初始化一系列实例?Help with Tomcat for Eclipse v1.03
这段实例化的代码可以优化提速吗?ant javac error in eclipse 3.0?
[分享]:一篇文章讲通一半JavaProblem on ANT,JAVA,JSP,JSPPrecompiler
Question about displaying ChineseHow big is the penalty for compile with debugging mode on?
simple swing question也问一个Eclipse的问题
为什么我这个html找不到applet class?QT is LGPL now
java compilation question刚刚开始学习java,麻烦帮我看一下我哪里错了行吗?谢谢
相关话题的讨论汇总
话题: jlabel话题: label话题: final话题: nonothing话题: 被声