- 1、本文档共69页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Outline Identifier, Keyword, Literal Variable, Type Operator Control Structures Identifiers in Java Identifiers are the names of variables, constants, labels, methods, classes, packages and interfaces. Identifiers must be composed of letters, numbers, the underscore _ and the dollar sign $. Identifiers may only begin with a letter, the underscore or a dollar sign. all names are case-sensitive. The following are valid identifiers: myVariable MyVariable MYVARIABLE x i _myvariable $myvariable _9pins кошка 猫 The following are not valid identifiers: My Variable // Contains a space 9pins // Begins with a digit a+c // The plus sign is not an alphanumeric character testing1-2-3 // The hyphen is not an alphanumeric character Its // Apostrophe is not an alphanumeric character javauml // ampersand is not an alphanumeric character Keywords Keywords are identifiers that have a special meaning inside Java source code and outside of comments and Strings. For instance, public, static and class Keywords are reserved for their intended use and cannot be used by the programmer for variable or method names. Complete list of Java keywords Outline Identifier, Keyword, Literal Variable, Type Operator Control Structures Variable A variable is a storage location and has an associated type, that is either a primitive type or a reference type. A variable always contains a value that is assignment compatible with its type. Every variable has a name, a type, a size and a value Name corresponds to location in memory Primitive Data Types in Java Javas primitive data types include boolean, byte, short, int, long, float, double, and char. All sizes of the primitive data types are precisely defined. For instance, an int is always 4 bytes. sizeof isnt necessary Java is strongly typed All variables in a Java program must have a type Variable in assignment statements must be matched double d; d = 1.0; Java primitive types Primi
您可能关注的文档
- (课件)第三章 新民主主义革命理论(2013).ppt
- 面向组织的职业生涯开发(5月28日).ppt
- 信息检索'第四讲搜索引擎与网络资源.ppt
- 第6章常用低压电器.ppt
- 大学教案——门市经营.ppt
- 新商业模式介绍 王立圣 CMP.ppt
- 五大工具-FMEA.ppt
- 宽视界培训2-主要设备与器材.ppt
- 北大教授C语言讲义C1.ppt
- ERP原理和分析设计.ppt
- 2025年中国床垫用弹簧钢丝市场调查研究报告.docx
- 2025至2030年中国胎体钻头数据监测研究报告.docx
- 2025至2031年中国异丁酸行业投资前景及策略咨询研究报告.docx
- 2025至2031年中国无线传输铁水质量管理仪行业投资前景及策略咨询研究报告.docx
- 2025至2030年中国八字脚端子片数据监测研究报告.docx
- 2025年中国三分量传感器万向平衡架市场调查研究报告.docx
- 2025至2031年中国挂幅行业投资前景及策略咨询研究报告.docx
- 2025年中国插入式大口径涡街流量传感器市场调查研究报告.docx
- 2025至2031年中国数字移动通信测试仪行业投资前景及策略咨询研究报告.docx
- 2025年中国壁挂式温湿度传感器市场调查研究报告.docx
文档评论(0)