July 2019
Intermediate to advanced
536 pages
12h 57m
English
Although obvious and somewhat subjective, it is good practice to comment on code when it is not obvious why something is done, there is a complex routine, or there is a "kluge" added to work around a problem. In Java, there are two types of comments used, as well as a set of standards for JavaDoc. We will look at a couple of examples here:
/* single line block comment */code goes here.../* * multi-line block * comment */code goes here...
code goes here // end of line comment
/** * Description of the method * * @param arg1 to the method
Read now
Unlock full access