Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Java Operators

 
 

Share on Google+Share on Google+

Java Operators

Advertisement
Assignment operator is the most common operator almost used with all programming languages.

Java Operators

     

  1. Simple Assignment Operator
    Assignment operator is the most common operator almost used with all programming languages.
        
  2. Arithmetic Operators
    Arithmetic Operators are used to perform some mathematical operations like addition, subtraction, multiplication, division, and modulo (or remainder).
      
  3. Unary Operators
    The unary operators requires only one operand to perform different kind of operations such as increasing/decreasing a value, negating an expression, or inverting a boolean value.
      
  4. Equality and Relational Operators
    Whenever we need to compare the results of two expressions or operands in a program then the equality and relational operators are used to know whether an operand is equal, not equal, greater than, less than to another operand.
       
  5. Conditional (Logical) Operators
    Conditional operators return a true or a false value based on the state of the variables i.e. the operations using conditional operators are performed between the two boolean expressions. 
      
  6. Bitwise and Bit Shift Operators
    In Java the bitwise and bit shift operators are used to manipulate the contents of variables at a bit level according to binary format.
      
  7. Type Operators
    Java provides a run-time operator instanceof to compare a class and an instance of that class. This operator " instanceof" compares an object to a specified class type
      
  8. Operator Precedence
    In Java, Operator Precedence is an evaluation order in which the operators within an expression are evaluated on the priority bases.
     
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 13, 2008

Related Tutorials

Discuss: Java Operators   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:4
jai2
June 15, 2011
asa

well...nothing to say..
jyoti agarwal
August 17, 2011
java operator

Simple Assignment Operator Assignment operator is the most common operator almost used with all programming languages. Arithmetic Operators Arithmetic Operators are used to perform some mathematical operations like addition, subtraction, multiplication, division, and modulo (or remainder). Unary Operators The unary operators requires only one operand to perform different kind of operations such as increasing/decreasing a value, negating an expression, or inverting a boolean value. Equality and Relational Operators Whenever we need to compare the results of two expressions or operands in a program then the equality and relational operators are used to know whether an operand is equal, not equal, greater than, less than to another operand. Conditional (Logical) Operators Conditional operators return a true or a false value based on the state of the variables i.e. the operations using conditional operators are performed between the two boolean expressions. Bitwise and Bit Shift Operators In Java the bitwise and bit shift operators are used to manipulate the contents of variables at a bit level according to binary format. Type Operators Java provides a run-time operator instanceof to compare a class and an instance of that class. This operator " instanceof" compares an object to a specified class type Operator Precedence In Java, Operator Precedence is an evaluation order in which the operators within an expression are evaluated on the priority bases.
nagendra.p
August 24, 2012
java operators........................

like this
eshwar
September 16, 2012
java

I would like to learn java plz teach me
DMCA.com