Arithmetic Operators in Java

Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the Identifiers in java. In this video we are going to discuss about Arithmetic Operators in Java.
Arithmetic Operators
Arithmetic Operators are simply Mathematical Operators such as + - * / %. Every  operator have it own purpose such as "*" is  used for multiplication of two or more numbers and "%" is used to find the remainder after dividing two numbers.

Watch The Video Below To Understand Arithmetic Operators in Java

The best thing about our site is that we provide our readers and viewers to practice their skills because Practice Puts Brain in Your Muscles. So, Go Ahead and Write a Java program which find the remainder of 10/12?

Answer the Following Question to know how much you have learnt?
  1. Which datatype is accurate to store the exact value of  System.out.println(22/7); ?
    1. float
    2. double
    3. Both of The These
  2. Which datatype is accurate to store the exact value of System.out.println(15/4); ?
    1. int
    2. float
    3. double
  3. Which datatype can store the exact value for System.out.println(4/2); ?
    1. int
    2. Float
    3. Both of these
  4. What will be the output of System.out.println("5%2"); ?
    1. 2
    2. 5%2
    3. 1
  5. Which is the function of "%" ?
    1. To Calculate Remainder
    2. To Calculate Percentage
    3. To divide a number

No comments

Powered by Blogger.