JAVA SE Basics Review-Basic program Design (2)

Source: Internet
Author: User
Tags switch case java se

3. Java operators

Monocular multiplication is the relationship, and the logic is assigned after three eyes.
Monocular: monocular operator +– (negative) + +--! such as
Multiplication: Arithmetic monocular operator */% +-
As: Displacement monocular operator << >>
Relationships: Relational Monocular operators > < >= <= = = = =
Logic: Logical Monocular operators && | | & | ^
Trinocular: Three mesh single-mesh operators a > B? X:y
After: Meaningless, just to make up the number of words
Assignment: Assigned value =

  

For example 1&2 ==3 first operation 2==3 again with 1 and so need (1&2) = = 3

<<: 0 -2<<1-4 2<<1 4

>>: If the sign bit is positive, insert 0 at the highest bit and if the sign bit is negative, insert 1-2>>1-1 2>>1 1 at the highest bit

>>>: Both positive and negative, insert 0 at the highest bit

4. Java Control statements

Conditional Structure If...else switch case

Loop structure for (;;) {} while () {} do{}while ()

5. Java Method Transfer parameter

Http://www.cnblogs.com/maydow/p/4460900.html

JAVA SE Basics Review-Basic program Design (2)

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.