write types of comments used in java
Answers
Answer:
EDUCBA
Menu
Java Commands
Home » Software Development » Software Development Tutorials » Java Tutorial » Java Commands
Java Commands
Introduction to Java Commands
Java is a multi-purpose general computer programming language which has the best amalgamation of being class-based and object-oriented. It doesn’t have a plethora of implementation dependencies too. Today, almost in every realm we can see Java being into the picture. This language provides mainly three computing platforms viz. J2SE, J2ME, J2EE. This is one of the most popular client-server application based programming languages with a Java Development Kit comprising of Java Runtime Environment and other utilities. It consists of Java Virtual Machine and a bytecode which makes it possible for this language to get compiled and executed at any platform and any computer architecture. Java is supported by a few development environments such as Eclipse, IntelliJ, BlueJ, Netbeans, etc, but there are some basic commands which can be executed through terminal or command prompt or some syntax used in programming. In this tutorial, we are going to discuss different types of Java commands.
Explanation:
In a program, comments take part in making the program become more human readable by placing the detail of code involved and proper use of comments makes maintenance easier and finding bugs easily. Comments are ignored by the compiler while compiling a code.
In Java there are three types of comments:
Single – line comments.
Multi – line comments.
Documentation comments.
Single-line Comments
A beginner level programmer uses mostly single-line comments for describing the code functionality.