Arithmetic operators in Java
public static void main(String[] args) {
System.out.println(3+3);
System.out.println(5-3);
System.out.println(5*3);
System.out.println(10/2);
System.out.println(10%2);
System.out.println(11/2);
System.out.println(11%2);
System.out.println(11/(float)2);
System.out.println(0/10);
// System.out.println(10/0);
System.out.println('A'+'A');//65+65
System.out.println('A'+'B');//65+66
System.out.println('B'-'A');//66-65
System.out.println(2+2);
System.out.println("Hello"+2);
System.out.println("Hello"+"World");
System.out.println(true+"World");
}
#java #javaprogramming
#javaforbeginners
#eclipse #SDET_QA
For more videos https://www.youtube.com/@SDET_QA/videos
On this page of the site you can watch the video online Arithmetic operators in Java with a duration of hours minute second in good quality, which was uploaded by the user SDET_QA 17 May 2023, share the link with friends and acquaintances, this video has already been watched 16 times on youtube and it was liked by 0 viewers. Enjoy your viewing!