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
English,
23 days ago
Math,
23 days ago
Computer Science,
1 month ago
Math,
1 month ago
Math,
8 months ago