Engineering Full Stack Apps with Java and JavaScript
Consider the following class...
class TestClass{ int x; public static void main(String[] args){ // lot of code. } }
Select 1 option
A. By declaring x as static, main can access this.x
B. By declaring x as public, main can access this.x
C. By declaring x as protected, main can access this.x
D. main cannot access this.x as it is declared now.
E. By declaring x as private, main can access this.x