Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the main points of JAVA grammar

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "what are the main points of JAVA grammar", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn what are the main points of JAVA grammar?

1. About the variable itself + +

The variable itself + +: if I output I, then I will output the result of iSuppli whether + + is before or after I.

However, if it is in the form of assignment, such as jackers, then the output j is I, and the new output I is also the result of iFig 1, because here we first give the value of I to j, and then to iCode1.

Then j is the opposite of ifold +, j will be equal to the result of iFig 1, because here I assign iFig 1 to j first.

two。 About type casting errors

Use the + = form to avoid errors

3. Short circuit and and short circuit or

Short circuit and (& &): when one side is false, the calculation on the other side is not performed, so the iSome3djig4 printed here does not calculate + + j to make jackers 5.

Short circuit or (| |): when one side is true, the calculation of the other side will not be performed, so the iSome3djig4 printed here will not calculate + + j to make jackers 5.

4. Ternary operator (Boolean expression)

If the content in parentheses is true true, then output? The last one is the nearest, and vice versa, output another one.

The above is all the contents of the article "what are the main points of JAVA Grammar". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report