Category: Variables
Static Variable With Example In JAVA
Any variable when declared with the keyword “static” is known as static variable or class variable in JAVA. Static variable is used to fulfill the common properties of…
Instance Variable With Example In JAVA
An instance variable is a variable defined in a class (i.e. a member variable) in which each instantiated object of the class has a separate copy, or instance. An instance variable is similar to…
Local Variable With Example In JAVA
A local variable is a variable declared inside a method body, block or constructor. It means variable is only accessible inside the method, block or constructor that declared…
Types Of Variables In JAVA With Example
A variables can be defined as to reserve memory space to store the values. These can be initialized at the time of declaration or later on depending on…