当前位置: 首页 > news >正文

做设计开哪个素材网站的会员好高端企业建站公司

做设计开哪个素材网站的会员好,高端企业建站公司,企业新闻网站如何建设,小网站关键词在Java中,我们有时会使用final对变量进行修饰,被修饰的变量只能够被赋值一次。如果final变量是引用类型,则它将永远持有相同的对象的引用;如果是简单类型,则它会拥有着不变的值。那么,final变量就是我们所说…

在Java中,我们有时会使用final对变量进行修饰,被修饰的变量只能够被赋值一次。如果final变量是引用类型,则它将永远持有相同的对象的引用;如果是简单类型,则它会拥有着不变的值。

那么,final变量就是我们所说的常量吗?事实上不是的,因为一个被final修饰的变量,虽然只能被赋值一次,但是如果它为引用类型的变量,那么它所指向的对象则可能改变,所以称其为'可变变量'更好,而常量的范围相对可变变量来说,更加狭窄。在Java语言规范(§4.12.4)中,对于常量有着明确的定义:A constant variable is a final variable of primitive type or type String that is initialized with a constant expression (§15.28). Whether a variable is a constant variable or not may have implications with respect to class initialization (§12.4.1), binary compatibility (§13.1, §13.4.9), and definite assignment (§16 (Definite Assignment)).

这说明,常量(或者说是常量变量)仅可能为简单类型或者String类型,是被一个常量表达式初始化,并且必须为final的,而常量表达式的定义在Java语言规范(§15.28)中有着定义:A constant expression is an expression denoting a value of primitive type or a String that does not complete abruptly and is composed using only the following:

Literals of primitive type and literals of type String (§3.10.1, §3.10.2, §3.10.3, §3.10.4, §3.10.5)

Casts to primitive types and casts to type String (§15.16)

The unary operators +, -, ~, and ! (but not ++ or --) (§15.15.3, §15.15.4, §15.15.5, §15.15.6)

The multiplicative operators *, /, and % (§15.17)

The additive operators + and - (§15.18)

The shift operators <>, and >>> (§15.19)

The relational operators , and >= (but not instanceof) (§15.20)

The equality operators == and != (§15.21)

The bitwise and logical operators &, ^, and | (§15.22)

The conditional-and operator && and the conditional-or operator || (§15.23, §15.24)

The ternary conditional operator ? : (§15.25)

Parenthesized expressions (§15.8.5) whose contained expression is a constant expression.

Simple names (§6.5.6.1) that refer to constant variables (§4.12.4).

Qualified names (§6.5.6.2) of the form TypeName . Identifier that refer to constant variables (§4.12.4).

...

http://www.lbrq.cn/news/2704339.html

相关文章:

  • 合肥网站开发公司电话网络公司名字
  • 武汉企业网站各大网站收录入口
  • 房产资讯什么网站做的好网络营销毕业论文范文
  • 虚拟主机和网站空间最新的新闻 最新消息
  • 专注外贸建站百度应用市场下载安装
  • 哈尔滨网站建设多少钱定向推广
  • 旅游网站内容做多还是少今天刚刚的最新新闻
  • 网站建设定义写一篇软文多少钱
  • wordpress与iis7欢迎pc优化工具
  • 网站全屏弹出窗口企业自建网站
  • 抵扣发票在哪个网站做seo全称英文怎么说
  • 视频网站用php做seo网站培训班
  • 南昌网站建设设计磁力天堂最新版地址
  • 培训怎么样网页设计搜索引擎关键词优化方案
  • 德宏企业网站建设公司6网络搜索优化
  • 天元建设集团有限公司财务分析郑州seo排名公司
  • 网站设计与建设的公司欧洲站fba
  • 成都定制网站建设营销qq下载
  • 网站建设计划书查网站权重
  • 做基网站外贸seo
  • 个人网站设计风格杭州龙席网络seo
  • 网站的标题可以改吗b站引流推广网站
  • 烟台网站建设的方法有哪些百度授权代理商
  • 职业病院网站建设线上销售水果营销方案
  • 拖拽网站关键词挖掘长尾词工具
  • 孙俪做的网站广告买卖交易平台
  • 彩票网站的表格是如何做的百度竞价推广怎么样才有效果
  • 湘潭做网站公司互联网广告代理
  • 廊坊做网站哪家好色盲悖论
  • asp.net做电商网站页面设计seo岗位培训
  • [系统架构设计师]系统架构基础知识(一)
  • 什么是HTTP的无状态(举例详解)
  • linux 开机进入initramfs无法开机
  • 如何在 Ubuntu 24.04 LTS Linux 中安装 JSON Server
  • 三维工厂设计软件 AutoCAD Plant 3D 安装图文教程
  • Redis 数据结构及特点