Contact Us || Privacy Policy || About Us |
|
Variable in Java
![]() type :- Where type is the data type that can be stored in variable. name : - Where name is the given by user to the variable. Types of Variable :There are three types of variables in Java that is...
1) What is Local VariableA Local variables is declare inside the method or block or constructor is called local variable. Example Output ![]() 2) What is Instance VariableInstance Variable declared inside the class but outside the method. Example Output ![]() 3) What is Static variable
Example 1: Output ![]()
Next TopicData Types in Java
|