Java OOPC -Class, Variables, Methods, Modifiers ,Main Methods

Class Boundary of a class means that in a class except the methods, other whole things we tell it boundary of a class. Class, constructor, and main method comes under the class boundary. Other methods also inside of the class but we did not consider it as boundary of the class. in here according to the above coding except the ' testmethod' comes under the boundary of the class. Variables In Java, variables are containers for storing data values. Each variable has a specific data type, which determines the kind of data it can hold. There are two main data variable types. 1.static variables 2. non-static variables Static Variables Using ‘static’ keyword these variables are created , and can access in any place in the inside of the class. It is fact that the Local variable cannot be a static variable. ...