In this article, we will cover what exactly is Javadoc, why it should be used, and How to create Javadoc to improve readability in a second.
What is Javadoc?
Javadoc is a documentation generator for the Java language for generating API documentation in HTML format from Java source code. The HTML format is used for adding the convenience of being able to hyperlink related documents together.
For any automation framework developed with java, we need to include Javadoc in our code to make others understand who reads the code.
Shortcut to create Javadoc while coding which is very easy to use as well. If you want to include java, We need to type /** and hit on Enter.
We can generate Javadoc as shown below