Are there any global variables in Java, which can be accessed by other part of your program?- | Eklavya Online

Are there any global variables in Java, which can be accessed by other part of your program?-

No, it is not the main method in which you define variables. Global variables is not possible because concept of encapsulation is eliminated here.