मराठी

Explain the usage of the following special symbol in Java: ()(simple brackets)

Advertisements

प्रश्न

Explain the usage of the following special symbol in Java:

()(simple brackets)

स्पष्ट करा
Advertisements

उत्तर

The simple brackets or parentheses () are used in Java to enclose conditions, expressions, and parameters. They are used in conditional statements such as if and while, and in method declarations and method calls. Parentheses are also used to control the order of evaluation in arithmetic expressions by giving priority to the operations enclosed within them.

Example:

if (a > b) 
{
    System.out.println("a is greater");
}
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Variables and Expressions - EXERCISE [पृष्ठ १३५]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
पाठ 6 Variables and Expressions
EXERCISE | Q 60. (d) | पृष्ठ १३५
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×