Which of these lines of Java code will give better performance? [code] 1. a | 4 + c >> b & 7; 2. (a | ((( 4 * c ) >> b ) & 7 ))[/code]

Huyền Thu

New member
Which of these lines of Java code will give better performance?
Code:
   1. a | 4 + c >> b & 7; 
   2. (a | ((( 4 * c ) >> b ) & 7 ))
A. 1 will give better performance as it has no parentheses
B. 2 will give better performance as it has parentheses
C. Both 1 & 2 will give equal performance
D. Dependent on the computer system
 

Tìm kiếm

Back
Top