1. Home
  2. Computing & Technology
  3. Java

Operator

By Paul Leahy, About.com

Definition:

Operators are special characters within the Java language that perform operations on arguments to return a specific result.

In Java, there are the following kinds of operators:

Examples:

The arithmetic operators "+", "-", "/" are the same characters that you learned at school for addition, subtraction and division:

int two = 2;
int anotherTwo = 2;
int result;

//what's two plus two?
result = two + anotherTwo;

//what's two divided by two?
result = two / anotherTwo;

//what's two minus two?
result = two - anotherTwo;

Glossary:

# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Explore Java
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Java
  4. Java Glossary
  5. O
  6. Definition for the Term: Operator>

©2009 About.com, a part of The New York Times Company.

All rights reserved.