Home > Java > javaTutorial > body text

How to input or and non in java

little bottle
Release: 2020-09-19 10:18:13
Original
8065 people have browsed it

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.

How to input or and non 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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template