20145105 Java Programming 2nd week of study summary

Source: Internet
Author: User
Tags bitwise operators java keywords

20145105 "Java Program design" The 2nd week study Summary textbook Learning content Summary

In the third chapter, the main learning content and C language have many similarities, and the basic syntax of Java is narrated. which covers: 1. Type:-Short integer (2 bytes), int integer (4 bytes) and long Integer (8 bytes)-byte type (1 bytes, typically used to process data byte by bit)-float floating point number (4 bytes), double floating point number (8 bytes)-Char type (2 bytes)- Boolean: The Boolean type can represent True and false, respectively, representing the true and false logic, and in Java do not care about its length.

    1. Variable:
      • Basic rules: Do not use numbers as a starting, not to use some special characters, variable names can not be the same name as Java keywords
      • Define variables: Data type variable name = initial value
    2. Operator:
      • Operators of arithmetic operations: + 、-、 *,/,% (remainder after division)
      • comparison, condition arithmetic: = =,! =, <, >, <=, >=, whether or not the comparison condition is true or False in Boolean form
      • Logical Operators:&, |, ^,! , &&, | |
      • Bitwise operators:<<, >>, >>> (must be 0 on the left after the right shift), &, |, ^, ~
      • Increment decrement: + + 、--
      • Specify operations: =, + =,-=, *=,/=,%=
    3. Type conversions:
      • Automatic type promotion: integers that have operands that are not more than int are automatically promoted to type int
      • Coercion type conversions: forcing one type of operand to be converted to another type
    4. Process Control:
      • Conditional: If...else statement, switch statement
      • Loops: For loop, while loop
      • Other: Break,continue statement (above basic structure statement similar to C language)
Problems in teaching materials learning and the solving process

The content of this chapter is similar to the C language book, so there is not much difficulty in learning, and the study of this chapter can be combined with the previous learning content.

Problems in code debugging and the resolution process

I chose to first copy the more basic code to compile, basically not too much problem. (Small problem easy to explain through the textbook)

Other (sentiment, thinking, etc., optional)

The third chapter of the study more clear only really hands-on to find problems to solve the problem can be really mastered, there is in the process of writing a blog book on the knowledge of a more convenient memory to understand memory.

Learning progress Bar

| | Lines of code (new/cumulative) | Blog volume (Add/accumulate) | Learning time (NEW/cumulative) | Important Growth | | -------- | :----------------:|:----------------:|:---------------: |:-----:| | Target | 3000 Rows | 15 articles | 300 Hours | | | First week | 50/50 | 2/2 | 14/14 | | Second week | 100/150 | 1/3 | 10/24 |

20145105 Java Programming 2nd week of study summary

Related Article

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.