- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Best practices for Java comments.
Java supports single-line, multi-line comments and documentation comments. Documentation comments are understood by javadoc tool and can be used to create HTML based documentation. Following are the best practices while using comments in Java.
- Use documentation comments, whenever you want its documentation to be generated.
- Multi-line comments are used to comments out unused code.
- single line comments are preferably used in code and it should be meaningful enough to showcase the purpose of the business logic.
- Related Articles
- Java variable declaration best practices
- Best practices for using MySQL indexes?
- Best practices for writing a Dockerfile
- Best Practices for Project Budget Management
- Best Practices for Managing the Security Function
- The Best Practices for Client Relationship Management
- Best Practices for Project Closures to Implement
- Top Best Practices for Managing Project Budget
- Best Practices For Preparing a Lessons Learned Document
- Openssh security best practices
- Acquiring Resources – Best Practices!
- VMware vSphere Best Practices
- What are the best practices for committing in Git?
- Best Practices for Decision-making in the Business World
- What are the best practices for using loops in Python?

Advertisements