Xiaokang will accompany you to learn JAVA---java basic program design summary, java basic knowledge Summary

Source: Internet
Author: User

Xiaokang will accompany you to learn JAVA---java basic program design summary, java basic knowledge Summary

Some time ago, I introduced the basic program design of JAVA. I hope it will be helpful to you.

1. Java data types can be divided into the following two types: Basic Data Type and reference data type.

2. Java provides code for the maximum and minimum values of four integer types: long, int, short, and byte. The code for the maximum value is MAX_VALUE, and the minimum value is MIN_VALUE. If you use the maximum or minimum values of a type, you only need to add the full name of the class to which they belong before some code.

3. Unicode: it creates a unique value for each character so that it can be used in any language, platform, or program with peace of mind.

4. boolean variables have only true and false values.

5. Data type conversion can be divided into the following two types: "automatic type conversion" and "forced type conversion ".

6. Expressions are composed of operands and operators.

7. The unary operator only needs one operand. For example, "+ 3" and "~ A,-a, and! A "and so on are composed of the unary operator and an operand.

8. Arithmetic Operators include addition operators, subtraction operators, multiplication operators, Division operators, and remainder operators.

9. The if statement determines the program process based on the judgment result.

10. increasing and decreasing Operators have great convenience. Using them can improve program conciseness.

11. Parentheses () are used to process the priority of expressions and are also Java operators.

12. When there is a Type mismatch in the expression, there are the following solutions: (1) data types that occupy less bytes are converted to data types that occupy more bytes. (2) If there are short and int types, the int type is used. (3) The character type is converted to the short type. (4) convert int type to float type. (5) If the type of an operand is double, other operands are converted to double. (6) The boolean type cannot be converted to another type.

13. The program structure includes: (1) sequential structure, (2) Select structure, and (3) cyclic structure.

14. Loop is the best option when you need to repeat a function. You can choose to use the for, while, and do... provided by Java according to the needs and habits of the program... While loop to complete.

15. The break statement can free the forcible program from the loop. When the program runs the break statement, it will exit the loop and continue executing the next statement outside the loop. If the break statement appears in the inner loop of the nested loop, then, the break statement will only escape from the current layer loop.

16. The continue statement can force the program to jump to the starting point of the loop. When the program runs to the continue statement, it stops running the remaining loop body and continues running at the beginning of the loop.

17. The selection structure includes the if, if-else, and switch statements. After adding the selected structure to the statement, it is like a crossroads, the program runs in different directions and results.

18. A variable can also be declared in a loop, but the declared variable is only a local variable. This variable cannot be used as long as it jumps out of the loop.


JAVA programming-simple student information management system

Download.csdn.net/source/315810
Here you can download what you want, and you can simply modify it yourself.

Can PHP programmers improve their PHP development capabilities by learning Java?-PHP advanced Discussion

The program is a programming idea. Do not stay in PHP alone. In this way, you will have very little knowledge, and there will be more substantive problems. You do not know where the problem is. If you have time, go to the library and stay idle, take a look at some data structures, algorithms, object architectures, cmme, and project management. At a certain stage, you have time to think about the maximum data structure optimization problems and algorithm implementation. this helps you analyze the problem. Is it necessary for PHP programmers to learn JAVA? (I am a JAVA programmer). I personally think it is necessary. JAVA allows you to learn many things, rather than simply explaining the process. In terms of architecture, if you are at the Director level, there are many things to think about, the W3C standard at the front end (very important ), precautions for data design, directory arrangement and organization, and encapsulation of underlying classes... for PHP, we suggest you look at some frameworks to improve yourself and study the SPL source code of PHP 5.20. I hope your new project can use SPL, ^ _ ^; as one of the core PHP developers, helly is also a senior JAVA and C ++ programmer, SPL related error handling and interator. Many JAVA things are referenced in the array interface. I can understand JAVA at a Glance. Last month, a friend of mine (C, JAVA programmer) was very good at ASM. This guy was not familiar with PHP before, however, after learning about PHP in just one week, he has learned how to write the jooma plug-in and completed the project independently. encoding is just a programming idea, and the only difference is that the syntax is different. if you have more time to talk to friends in the industry, you will make rapid progress. PEA has several Good Master! []
 

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.