Variables in Java
A variable is the name that reserved space in memory . Variables in java are three types . 1. Local Variable : a) A variable which is declared inside the method of a class b) Local variable can be access within the method not outside the method. c) There is no default value for local variable . That means it should be declared and initialize before first use . d) Access modifiers can not be used for local variable . 2. Instance Variable : a) A variable which is declared inside the class but outside the method. b) Instance variables are created when a o...