which of the below statements are false about java's local variables, instance variables, and class variables?
a local variable declared in one function can be used in other functions of same class as well.
an instance variable of a class can be used by all the functions of same class directly.
a class variable declared in a class can be shared by all the objects of same class directly.
all are true
a local variable declared in one function can't be accessed in other functions, even if they belong to same class.
Back To Top