P

Prabhas Kapoor • 1.64K Points
Master

Q. Which of these lines of code will give better performance?

Code:
 1. p | 8 + r >> q & 10; 
 2. (p | ((( 8 * r) >> q ) & 10 ))
  • (A) 2 will give better performance as it has parentheses.
  • (B) Dependent on the computer system.
  • (C) 1 will give better performance as it has no parentheses.
  • (D) Both 1 & 2 will give equal performance.
  • Correct Answer - Option(D)
  • Views: 183
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics