Instance Variables vs Local Variables in JAVA
Instance Variables:- Variables that are declared in the global scope i.e. at class level. By default, their values are initialized to default values depending on data types. For ex. for int data type, value is initialized to 0. The memory for inst...
Feb 16, 20231 min read