Computer Science, asked by pranjalkakkar23, 1 month ago

Syntax for variable initialization in Java is ________​

Answers

Answered by RealSweetie
0

Answer:

This creates a box called x with type int and writes a value of 10 in the box. The syntax for an initializer is the type, followed by the variable name, followed by an equal sign, followed by an expression. That expression can be anything, provided it has the same type as the variable.

Answered by boudhedarshini386
0

Explanation:

data type variable [ = value][, variable [ = value] ...] ; Here data type is one of Java's datatypes and variable is the name of the variable. To declare more than one variable of the specified type, you can use a comma-separated list.

Similar questions