final变量~

final对于方法和类比较简单,就是不能继承,不能覆盖~

对于变量以前不太理解,原来就是初始化后不能改变:
 1. 对于primitive,没什么好说,不能再赋值。
 2. 对于reference的,就是不能再给它新reference,改变里面的值是Okay的。
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s