In java Program the main class name has to be same to the program name.
The main method have to be declared as public static void main(String args[ ]).
In this program the concept of post and pre increment has been shown;
suppose x=10,y=++x;
this means x=x+1 ; and y=x;
so the result will be x=y=11;
and suppose x=10 ; and y=x++;
this means y=x;x=x+1;
so the result will be x=11 and y=10.
On this page of the site you can watch the video online Java Programming Tutorial for beginners - (Pre and Post Increment Operator in Java) - HD with a duration of hours minute second in good quality, which was uploaded by the user Kb Jones 04 July 2012, share the link with friends and acquaintances, this video has already been watched 904 times on youtube and it was liked by 2 viewers. Enjoy your viewing!