KnowledgeBoat Logo

Computer Applications

A compound statement can be stated as:

  1. p = in.nextInt();
    q = in.nextInt();
  2. m =+ + a;
    n =— b;
  3. if(a > b)
    { a++; b--;}
  4. none

Java Conditional Stmts

23 Likes

Answer

if(a > b)
{ a++; b--;}

Reason — Two or more statements can be grouped together by enclosing them between opening and closing curly braces. Such a group of statements is called a compound statement.

Answered By

11 Likes


Related Questions