Java is an object-oriented programming language. Java has the characteristics of simplicity, object-oriented, distributed, robustness, security, platform independence and portability, multi-threading, and dynamics. Next, I will tell you how to input OR, AND, and NOT in Java.
Writing method:
and: &&
or: ||
Not:!
For those who have learned C, do you think it looks familiar?
This is indeed the case. When Java developers develop Java, they make Java absorb the various advantages of the C language and abandon the concepts such as multiple inheritance and pointers that are difficult to understand in C. Therefore, the Java language It has two characteristics: powerful function and simple and easy to use.
The Java language, as a representative of static object-oriented programming languages, perfectly implements the object-oriented theory and allows programmers to perform complex programming Java with an elegant way of thinking.
Java has the characteristics of simplicity, object-oriented, distributed, robustness, security, platform independence and portability, multi-threading, and dynamics.
Related learning recommendations: java basic tutorial
The above is the detailed content of How to input or and non in java. For more information, please follow other related articles on the PHP Chinese website!