Differentiate between declaring and initializing a variable in Java. Use examples.
please no spam
Answers
Answered by
0
Answer:
When you declare a variable, you give it a name (name/age) and a type (String/int): String name; int age; Initializing a variable is when you give it a value.
Similar questions
Biology,
1 month ago
English,
1 month ago
Computer Science,
2 months ago
Math,
2 months ago
Math,
10 months ago