which is of the below statements are false about variables of java?
local variable - any variable declared in function level or in a block is called as local variable.
instance variable - any variable declared in class level which is not static is called as instance variable.
class or static variable - any variable declared in class level and which is static is called as class or static variable.
global variable - any variable declared outside the class is called as global variable.
there is no global variable concept in java. more over you can't write any thing outside the class in java.
Back To Top