Computer Science, asked by meerachittipolu, 19 days ago

Write the syntax for the following: 1. Initialization of a variable in Java Program 2. if conditional structure in Java​

Answers

Answered by pikachuarmyblink
0

Answer :

1. variableName = value

2. sorry i don't know 2nd one

Answered by AneesKakar
0

The answer to the given questions in written below.

1. The syntax for the initialization of a variable in java is:

  • Write the Type, then write the name of the variable, Then add an equal sign, then add the expression or the value of the variable which you would like to assign it.
  • Now add ';' to finish the initialization.

2. The syntax for if conditional structure in java is:

  • First, write the variable, then the use the condition If().
  • The condition will be used as: If { Statement}

  • Thus, all the questions relate to the programming language Java.

 

Similar questions