Image for post
Image for post
Photo by Chris Liverani on Unsplash
  1. Addition.
  2. Subtraction.
  3. Multiplication
  4. Division
  5. Remainder
  6. Special operators

Addition

int num1 = 5;
int num2 = 6;
int sum = num1 + num2;
System.out.println(sum); // 11
int num3 = sum + 10;
System.out.println(num3); // 21
num3 = num3 + 1;
System.out.println(num3); // 22

Subtraction

int num1 = 5;
int num2 = 6;
int sum = num2 - num1;
System.out.println(sum); // 1
int num3 = 100 - sum;
System.out.println(num3); // 99
num3 = num3 - 10;
System.out.println(num3); // 89

Multiplication


Image for post
Image for post
it’s useful to think that method is a separate program
  1. Method overview.
  2. Method arguments.
  3. Method return type.

Method overview


Image for post
Image for post
Variable is a container that can hold a piece of data

Variable


Image for post
Image for post
Photo by Michiel Leunens on Unsplash

Image for post
Image for post
Photo by Museums Victoria on Unsplash

Image for post
Image for post
Photo by Clint Patterson on Unsplash
  1. Operating System.
  2. File and File System.

Operating System


Image for post
Image for post
Photo by Chris Ried on Unsplash

Image for post
Image for post
Photo by NeONBRAND on Unsplash
  1. What is an exception?
  2. Exception types.
  3. How to handle an exception?
  4. How to throw an exception?
  5. Custom exceptions.

What is an exception?


Image for post
Image for post


Image for post
Image for post
Photo by Paul Teysen on Unsplash

Beknazar

Software Developer, Java Instructor https://www.techleadacademy.io/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store