मराठी

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×