Global Variable

Is global a keyword in java ?

Hello @Garima-Chhikara-1876 ma’am
Don’t know if I am eligible to answer your doubt, but still trying :grinning:

First of all, there is no concept of global variables in Java, there are only global classes with public fields. The keyword static is used to give global picture to variables.
Java does not have any concept of global variables. There is either an instance variable or a class variable. A class variable is also known as static field/variable ,and is shared by all the objects/instances of the class( hence the name “class variable”). On the other hand an instance variable is specific to a particular object or instance of the class ( hence the name “instance variable”).

You can view the complete List and usage of Java keywords here.