Using comments in Java programs Assignment Help

Assignment Help: >> Java background >> Using comments in Java programs

Using comments  in Java programs:

Comments in Java can be delineated by /* and */. For example, we can add some additional information to the sample program from the previous section, to explain its purpose and to document its creation:

/* A simple Java program
Author: The Course Team
Date of creation: 01/01/01 */

public class HelloWalrus

...

There are two different notations to indicate that the text is a comment, and therefore to be ignored by the computer system.
Text enclosed in the symbols /* and */ is treated entirely as comment text, even if it extends over more than one line. We call this a block comment.

Text occurring on a line after the symbol // is treated as comment text.

If the symbol // is the first item on the line, this defines a line comment. These are convenient for brief comments, typically occupying one or two lines as follows:

// display a poetic message

There can also be valid code at the start of the line, followed by the symbol // and then an in-line comment. This is useful for a short comment applying only to the item on that particular line. For example:

} // end of class HelloWalrus

 

Java Assignment Help - Java Homework Help

Struggling with java programming language? Are you not finding solution for your Using comments  in Java programs  homework and assignments? Live Using comments  in Java programs  experts are working for students by solving their doubts & questions during their course studies and training program. We at Expertsmind.com offer Using comments  in Java programs  homework help, java assignment help and Using comments  in Java programs  projects help anytime from anywhere for 24x7 hours. Computer science programming assignments help making life easy for students.

Why Expertsmind for assignment help

  1. Higher degree holder and experienced experts network
  2. Punctuality and responsibility of work
  3. Quality solution with 100% plagiarism free answers
  4. Time on Delivery
  5. Privacy of information and details
  6. Excellence in solving java programming language queries in excels and word format.
  7. Best tutoring assistance 24x7 hours

 

 

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd