Syntax for variable initialization in Java is ________
Answers
Answered by
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
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
Social Sciences,
29 days ago
English,
29 days ago
Math,
1 month ago
English,
1 month ago
History,
8 months ago