Tij Reading notes (chap. III)

Source: Internet
Author: User
Tags continue
Notes
3: Program Flow

Use Java operator precedence: multiplication and subtraction is worth the time you're replicating between objects, you're actually copying its reference. Aliasing during method invocation

Mathematical operations Single-character expression (Regular expressions) automatic increment and decrement relational operators test the equality logical operator of an object (short circuiting) bitwise operator SHIFT Operation Selector Meta If-else operator comma operator

The string and + operators commonly use error type conversion constants for operator aspects (literals)

Java has no "sizeof"

Summary of the revisit precedence operator except for a Boolean, all primitive types can be converted to other primitive types.

Execution control true and false conditional judgment (conditional) must be able to produce a Boolean result.      Return Loop statement while do-while for comma operator break and continue infamous "goto" 1. Normal continue will retreat to the very beginning of the internal loop, and then proceed with the internal loop.      2. Tagged continue will jump to the label and re-enter the loop directly following the tag.      3.break will sneak out of the "bottom" of the loop.    4. A tagged break will sneak out of the "bottom" of the loop labeled by this label. The Siwtch math.random () generates 0.0, and its domain is [0,1).

Summary: This chapter describes most of the basic features that become language: computing, Operator precedence, type conversion, selection, and looping. There are some small knowledge and easy to make mistakes in the place: P


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.