Scope of variables in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Scope of variables in java

java variables type and scope of variable are same answer or not

8th Jul 2018, 6:20 AM
viral
viral - avatar
2 Answers
0
No. The variable type is what kind of data is in the variable (integer, float, boolean, string, char, etc.) The scope is where the variable can be access, when it's destroyed, etc.
8th Jul 2018, 6:45 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
thanks yrr
12th Jul 2018, 6:22 AM
viral
viral - avatar