Computer Science, asked by keshavgroup6996, 3 months ago

how do define a variable in java?

Answers

Answered by mrdevansh70
1

Answer:

Declaring (Creating) Variables

type variable = value; Where type is one of Java's types (such as int or String ), and variable is the name of the variable (such as x or name). The equal sign is used to assign values to the variable.

Similar questions