Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > operator > Java operator
Upoperator

Java operator comparison table
Subject shorten have purpose compute is a subtopic of is a kind of return have form is an instance of indicate
=   The Basics of Java   Java operatorassignment
?:code but can also make code harder to understandto execute one of two alternative expressions, depending on the value of a condition The Basics of Java  
 result = (condition) ? doSomething() : doSomethingElse();
If condition is true, then result is set to the expression following the question mark, otherwise result is set to the expression following the colon
Java operator 
Java arithmetic operator   The Basics of JavaJava operator    
Java identity comparison operator   The Basics of JavaJava operator    
Java logical operator   The Basics of JavaJava operatora boolean   
Java relational comparison operator   The Basics of JavaJava operator    
Java special operator to shorten certain expressions The Basics of JavaJava operator    
new to create new objects     Java operator 
short circuit operator  right hand side of an expression if the left hand side is not trueThe Basics of JavaJava operator    

Upoperator