हिंदी

Which of the following is the correct precedence of logical operators? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following is the correct precedence of logical operators?

विकल्प

  • !, &&, ||

  • &&, !, ||

  • ||, !, &&

  • &&, ||, !

MCQ

उत्तर

!, &&, ||

Explanation:

  1. ! (logical NOT) has the highest precedence.
  2. && (logical AND) comes next.
  3. || (logical OR) has the lowest precedence.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.04: Operators in Java - EXERCISES [पृष्ठ ४३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.04 Operators in Java
EXERCISES | Q I. 1. | पृष्ठ ४३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×