KnowledgeBoat Logo
|

Computer Applications

By default, the if-part and else-part of an if statement can contain these many statements in it.

  1. 2
  2. 1
  3. 5
  4. as many

Java Conditional Stmts

7 Likes

Answer

1

Reason — By default, the if-part and else-part can contain only one statement. To include more than one statements, the set of statements need to be enclosed in curly braces and included as one compound statement.

Answered By

3 Likes


Related Questions