The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Trail: Learning the Java Language
Lesson: Language Basics

Other Operators

The Java programming language also supports the operators in the next table.

Operator Description
?: Shortcut if-else statement
The if/else Statements (in the Learning the Java Language trail)
[] Used to declare arrays, to create arrays, and to access array elements
Creating and Using Arrays (in the Learning the Java Language trail)
. Used to form qualified names
Using Objects (in the Learning the Java Language trail)
( params ) Delimits a comma-separated list of parameters
Using Objects (in the Learning the Java Language trail)
( type ) Casts (converts) a value to the specified type
new Creates a new object or a new array
Using Objects (in the Learning the Java Language trail) and Creating and Using Arrays (in the Learning the Java Language trail)
instanceof Determines whether its first operand is an instance of its second operand


Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail > Start of Lesson Search
Feedback Form

Copyright 1995-2005 Sun Microsystems, Inc. All rights reserved.