![]() |
Can variables be used in Java without initialization?
Can variables be used in Java without initialization?
|
In Java, if a variable is used in a code without prior initialization by a valid value, program doesn’t compile and gives an error as no default value is assigned to variables in Java.
|
All times are GMT -7. The time now is 01:16 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.