answersLogoWhite

0

Which direction are java operators evaluated from?

Updated: 8/21/2019
User Avatar

Wiki User

6y ago

Best Answer

It depends on the operator. Some have right-to-left associativity, some are left-to-right, some have no associativity.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which direction are java operators evaluated from?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the eight java operator?

The different types of operators in Java are:Assignment OperatorsRelational OperatorsArithmetic OperatorsLogical Operators


What are operators in the Java programming language?

Take a look at the 1st link below from Sun Microsystems (creator of Java), it will list most of the Java operators with an explanation. The 2nd link provides a more in-depth description of each type of operator.


When you combine AND and OR operators the OR operators take precedence meaning their Boolean values are evaluated first?

in some cases, aloop control variable does not have to be initialized.


What are the differences between precedence and associativity?

Precedence rules specify priority of operators (which operators will be evaluated first, e.g. multiplication has higher precedence than addition, PEMDAS).The associativity rules tell how the operators of same precedence are grouped. Arithmetic operators are left-associative, but the assignment is right associative (e.g. a = b = c will be evaluated as b = c, a = b).


What is operator in java?

An operator is a symbol that does something in Java. for ex: "+" is an arithmetic operator that adds two numbers. ">" is a logical operator that checks if one number is greater than the other. There are many different types of operators in Java like Arithmetic, Logical, Relational and Assignment operators


Rewrite the BNF of Example 3.4 to add the and -- unary operators of Java?

123


Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.


How-to to add to values in java core without using plus operator?

Though Java, unlike other languages, does not allow you to directly access the core, memory addresses and system variables, it does have binary operators, such as the shifters >>, <<, and the bitwise operators, |, &, ^. Using these operators, ALL calculations in the computer can be done, even your complicated trig functions. Though options are limited in Java, it does provide a simulated access to low level operations. The bitwise operators are in the link below. Look at the link below to see how the computer really does math.


What is the Java logical operators that has the highest order of preference?

"The following" doesn't make sense if you don't include a list. You can find a list of Java operators, including their precendence, at http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html. Or search for [java operator precedence] for additional places that explain this topic.


What are the mathematical order of operators in Java programming?

Mathematical operators have the standard precedence: parenthesis (brackets), orders (powers), multiplication/division, addition/subtraction. x + y * z implies x + (y * z) because multiplication has higher precedence than addition. When two operators have the same precedence (such as addition and subtraction), they are evaluated left to right. Thus x - y + z implies (x - y) + z.


What is a 'post fix expression' in java programming?

Postfix expressions are expressions where the operator is at the end of the expression. These include the "++" (increment) and "--" (decrement) operators. Most Java expressions use in-fix notation (e.g. "a + b") but the increment and decrement operators can be postfix ("e.g. "a++" to increment variable a) or even prefix (e.g. "++a").


What are the different types of Operators available in java?

arithmatic operator +,-,*,/,% assigment oprator == logical operator &,|,^,&&,,! bitwise opertor &,|,^ left shift << right shift >> left shift zero fill << assignment operator +=,-=,*=,/=