DEV Community

Cover image for One Commit at a Time ! Series - 22
Annapoorani Kadhiravan
Annapoorani Kadhiravan

Posted on

One Commit at a Time ! Series - 22

JAVA

public class Main {
  public static void main(String[] args) {
    int x = 5;
    int y = 3;
    System.out.println(x + y);
  }
}
Enter fullscreen mode Exit fullscreen mode

Explanation :

This Java program is a simple script that performs basic arithmetic by adding two integers and printing the result.

Here is a step-by-step breakdown:

  1. int x = 5;
  2. Declares an integer variable named x and initializes it with the value 5.

  3. int y = 3;

  4. Declares an integer variable named y and initializes it with the value 3.

  5. System.out.println(x + y);

  6. Adds the values of x and y together ($5 + 3$) and prints the resulting sum (8) to the console.

Output

8

Enter fullscreen mode Exit fullscreen mode

SQL

Operators in The WHERE Clause
You can use other operators than the = operator to filter the search.

Example
Select all customers with a CustomerID greater than 80:

SELECT * FROM Customers
WHERE CustomerID > 80;
Enter fullscreen mode Exit fullscreen mode

References :
https://www.w3schools.com/sql/sql_where.asp
https://www.w3schools.com/java/java_examples.asp

Top comments (0)