网站大量收购独家精品文档,联系QQ:2885784924

Internet开发技术讲义_2.ppt

  1. 1、本文档共69页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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

文档评论(0)

wxc6688 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档