Professional Documents
Culture Documents
Java
Java
Class: a container for related functions, it is used to organize the codes such as products in the
shop which has their own specific place .
Access modifier: is a special keywords that dertermine if other classes and methods in this
program can access to this classes and methods , we have various acess modifiers such as public
and private and so on .
Void is a reserve keyword and the only function that can return something and main() is the
name of the function it can be anything
Arithmatic operation
Result is 2
result is 2 as up
X=2 , y=1
both x and y is 2
result is 3
result is 1