हिंदी

What defines a block of code in Java?

Advertisements

प्रश्न

What defines a block of code in Java?

लघु उत्तरीय
Advertisements

उत्तर

In Java, a block of code is defined by a pair of curly braces { }. These braces enclose a group of statements that are treated as a single unit. The opening brace { marks the beginning of the block, while the closing brace } marks its end.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Variables and Expressions - SHORT ASSIGNMENTS [पृष्ठ १३६]

APPEARS IN

धीरज मेहरोत्रा Computer Science [English] Class 12
अध्याय 6 Variables and Expressions
SHORT ASSIGNMENTS | Q 32. | पृष्ठ १३६
Advertisements
Share
Notifications



      Forgot password?
Use app×