Thursday 21 March 2013

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


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.

Blog Author: Vijay Kumar


No comments: