Posts

BASIC STRUCTURE OF A JAVA PROGRAM

Image
  In this post you will learn the basic structure of a java program and what each line in that structure means Below is the photo of basic structure of a java program 1.Documentation Section :  It contains comments that increase the program's readability. A comment is a non-executable statement that aids in the reading and understanding of a program, particularly as it becomes more sophisticated. It's just a message that only the programmer sees, and the compiler ignores it. A good program should include comments that indicate the program's objective, author name, and creation date and time. Comments may appear anywhere in the program, and this area is optional. Now lets see the type of comments we can use in java programming,three different sorts of comments are supported by the Java programming language. i.Single Line Comment : It begins with a double slash symbol (//) and ends with the current line's end.  Everything from / to the end of the line is ignored by the co...