Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the basic knowledge of Java programming

Shulou Source: shulou.com Published: 2022-06-01 20:33:12 09月27日 Update

This article mainly explains "what are the basics of Java programming", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "What are the basics of Java programming?"

I. Data types

1. Basic type

integer: byte, short, int, long floating-point type: float, double byte type: char

2. Packaging type

Byte,Short,Integer,LongFloat,DoubleCharacter

3. String character

StringBuilder, StringBuffer

4. Type conversion

Automatic conversion: range small type-> range large type Forced conversion: range large type-> range small type II. Flow control

1. Branching statements

If statement else... if statement switch statement for loop while loop

2. Branch judgment

true and false

3. Process interruption

return keyword continue keyword break keyword

4. Basic algorithm

Bubble sort permutation combination recursion III. Array initialization data and collection container distinguish the underlying data structure IV. Operator

1. Arithmetic operations

Addition, subtraction, multiplication and division, priority rounding, rounding, 100% compensation

2. Relational operations

Greater than, less than, greater than or equal to, less than or equal to, not equal to

3. Assignment operation

Equal sign assignment automatically adds and subtracts

4. Shift operation

Left shift, right shift

5. Logic operation

And, or, non-operation process to the condition of the overall establishment of this, I believe that we have a deeper understanding of "Java programming basics", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Tags: Types operations fundamentals ranges statements basics knowledge programming keywords keywords data processes content branches methods learning looping practical deeper addition subtraction multiplication and division Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Apple Shulou Tech Info Xiaomi vpn