1. Home
  2. Computing & Technology
  3. Java

Operator

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.