answersLogoWhite

0


Best Answer

The so-called "multiline commend" (which can also be used for inline comments) start with /* and end with */. Here is an example:

/* This is a

multiline

comment */

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What characters mark the beginning of a multiline comment in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Explain different types of comment line in JAVA?

// The first type of comment is the single-line comment. // The single-line comment is denoted by a double slash. /* The next type of comment begins with a slash-asterisk, and ends with an asterisk-slash. It is often called a multi-line comment because it can span multiple lines with only one start indicator (/*) and one ending indicator (*/) */ /** * The last type of comment is the Javadoc comment. This * comment type has some guidelines that allows a Javadoc * reader to display information about a Java method or class * by using special tags: * * @param myNum - describe what the parameter myNum is used for * @return - describe what this method returns */ public static int doStuff(int myNum){}


In what programming language is substr used?

Java is the programming language where substr is used. Substr is a command that returns the characters in a string beginning at the specified location through the specified number of characters.


Why nested comment are not allowed on C language?

C and C++ do it for ease of parsing. This way, when they hit a comment start of /*, the parser can trivially scan to the end. Otherwise, it would have to set up and maintain a stack, and then report errors if the comment tokens are unmatched. As to why Java does it, the answer is simple - Java's syntax was designed to emulate C and C++, to trick people into thinking it was just as fast (in the beginning, Java was purely interpreted, so this trick WAS necessary to get traction). If nested comments were allowed, it might trip up some C programmers, and many angry blog posts would be written!


Is sizeof keyword in Java?

sizeof is not a keyword in Java but many classes have size() or length() methods, which can mean the number of elements, characters, etc. depending on the class.


How do you terminate input in java scripts?

Pass the code that gets input as a comment. Other way is to delete the code or disable javascript altogether

Related questions

Explain different types of comment line in JAVA?

// The first type of comment is the single-line comment. // The single-line comment is denoted by a double slash. /* The next type of comment begins with a slash-asterisk, and ends with an asterisk-slash. It is often called a multi-line comment because it can span multiple lines with only one start indicator (/*) and one ending indicator (*/) */ /** * The last type of comment is the Javadoc comment. This * comment type has some guidelines that allows a Javadoc * reader to display information about a Java method or class * by using special tags: * * @param myNum - describe what the parameter myNum is used for * @return - describe what this method returns */ public static int doStuff(int myNum){}


In what programming language is substr used?

Java is the programming language where substr is used. Substr is a command that returns the characters in a string beginning at the specified location through the specified number of characters.


What does poi comment mean in English?

Poi Comment is part of Java's Excel sheet coding. It has no other meaning.


What is the need of separators in java?

Separators are the characters which stands for puncuations in java such as brackets,braces etc


Why nested comment are not allowed on C language?

C and C++ do it for ease of parsing. This way, when they hit a comment start of /*, the parser can trivially scan to the end. Otherwise, it would have to set up and maintain a stack, and then report errors if the comment tokens are unmatched. As to why Java does it, the answer is simple - Java's syntax was designed to emulate C and C++, to trick people into thinking it was just as fast (in the beginning, Java was purely interpreted, so this trick WAS necessary to get traction). If nested comments were allowed, it might trip up some C programmers, and many angry blog posts would be written!


What is a four letter word beginning with j that you drink?

Java


What is FileReader?

In java FileReader is a class which is meant for reading streams of characters.


How do you restrict no of characters in text box in HTML?

by using java script


What has the author Kevin Mukhar written?

Kevin Mukhar has written: 'Beginning Java databases' -- subject(s): Java (Computer program language)


Is there a landform with a name beginning with J?

Java is a large island that is part of Indonesia.


java burn?

Hello, Java Burn is a weight loss Supplement. Currently one of the best since the beginning of medicine. You can check my Bio to find a link that will tell you all you need to know bout Java Burn.


How do you input the number of characters in java?

".length()". The . length method is inherited from the String class.