can arrays be initialized before declaring them?(in java)
Answers
Answered by
1
Answer:
no, arrays can not initialize before declaring
Answered by
0
No is the correct answer for the above question.
Explanation:
- In any language, the declaration is used to define the type of variable that what type of value it will hold.
- It is used to state that the variable is a normal variable or array variable when it is defined as an array variable then only it will take the array type value.
- The initialization is a process when the variable will assign some value.
- If there is no defined type of variable then no value will be initialized for that variable.
- So there is a needs to define the variable before it will be initialized.
Learn More:
- Array : https://brainly.in/question/14001264
Similar questions