- 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
Java single line comments.
// is used for single line comments.
Example
public class MyFirstJavaProgram { public static void main(String[] args) { // This is a single line comment. System.out.println("Hello World"); } }
- Related Articles
- Java multi-line comments
- How to write single-line comments in C#?
- How do we use single line comments in JavaScript?
- What is the difference between single-line and multi-line comments in JavaScript?
- Java comments.
- Java documentation comments
- How to write single line comment in Java?
- /** and /* in Java comments
- Types of Java comments.
- Executable Comments in Java
- Comments in Java\n
- How to write multi-line comments in C#?
- How do we use multi-line comments in JavaScript?
- Compare two int arrays in a single line in Java
- Compare two short arrays in a single line in Java

Advertisements