What is meant by local variable and instance variable?
Answer / Kana Ram Yogi
A local variable is a variable declared within a method, block, or scope, which can only be accessed inside that specific method, block, or scope. An instance variable, also known as an object variable, is a member variable of a class, accessible from any method in the same class and from methods in its subclasses.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is stream api in java8?
What's the purpose of static methods and static variables?
What is a get method?
What is the intersection and union methods?
List some features of the abstract class.
What is difference between wait and notify in java?
Can we create an object of private class?
How to find the index of the largest number in an arraylist java?
Can we make a constructor final?
What do you mean by of string::valueof expression in java 8?
Do you need to import math in java?
What is meant by inheritance and what are its advantages?