Java Operators: Arithmetic, Relational, Logical, Assignment

📘 Day 5 of Java Learning Series 🔍 Operators in Java Operators are symbols used to perform operations on variables and values. 🔹 1. Arithmetic Operators ✔ + (Addition) ✔ - (Subtraction) ✔ * (Multiplication) ✔ / (Division) ✔ % (Modulus) 🔹 2. Relational (Comparison) Operators ✔ == (Equal to) ✔ != (Not equal) ✔ > (Greater than) ✔ < (Less than) ✔ >= , <= 🔹 3. Logical Operators ✔ && (AND) ✔ || (OR) ✔ ! (NOT) 🔹 4. Assignment Operators ✔ = , += , -= , *= , /= 💡 Example: int a = 10, b = 5; System.out.println(a + b); // 15 System.out.println(a > b); // true System.out.println(a == b); // false 📌 Key Point: Operators help perform calculations and make decisions in programs. 👉 Follow me for more Java content 🚀 #Java #CoreJava #Programming #Developers #100DaysOfCode #Coding

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories