网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

OracleOCAJ2SE7Cetificate-RulesforPrimitiveTypes

  • Any bigger than an int can NEVER be assigned to an int or anything smaller than int (byte, char, or short) without explicit cast.

    创新互联公司是一家专注于网站设计制作、网站设计与策划设计,东昌府网站建设哪家好?创新互联公司做网站,专注于网站建设10年,网设计领域的专业建站公司;建站业务涵盖:东昌府等地区。东昌府做网站价格咨询:13518219792

  • Constant values up to int can be assigned (without cast) to variables of lesser size (e.g. short to byte) if the values are representable by the variable.

  • Operands of mathematical operators are ALWAYS promoted to AT LEAST int. (e.g. byte*byte both bytes will be first promoted to int) and the return value will be AT LEAST int.

  • Compound assignment operators (+=, *= etc) have strange ways so ready this carefully: A compound assignment expression of the form E1 op = E2 is equivalent to E1 = (T)((E1) op (E2)), where T is the type of E1

  • A char value can ALWAYS be assigned to an int variable, since the int type is wider than the char type.

  • A narrowing primitive conversion may be used if all of the following conditions are satisfied:

    1. The expression is a constant expression of type int.

    2. The type of the variable is byte, short or char.

    3. The value of expression is representable in the type of the variable.

    4. NOTE THAT narrowing conversion doesn't apply to long or double. So, char ch = 30L; will fail althrough 30 is representable by a char.


分享名称:OracleOCAJ2SE7Cetificate-RulesforPrimitiveTypes
当前地址:http://bjjierui.cn/article/pcisoi.html

其他资讯