Programming Tutorials

What types of comments are available in the JSP?

By: Karthik in Interview Tutorials on 2012-06-16  

Answer: There are two types of comments are allowed in the JSP. These are hidden and output comments. A hidden comments does not appear in the generated output in the html, while output comments appear in the generated output.

Example of hidden comment:

<%-- This is hidden comment --%> 

Example of output comment:

<!-- This is output comment -->





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Question: Difference between forward and sendRedirect in JSP?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

What is Collection API?

Explain garbage collection?

The output of System.out.println(5>>2) in Java

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Question: How would you go about analyzing performance of an application?

Interview Question: What is the difference between EAR, JAR and WAR file?

Differentiate between .ear, .jar and .war files.

What is the difference between Session Bean and Entity Bean?

Interview Question: What is Deployment descriptor?

Interview Question: Do ActionForms have to be true JavaBeans?

What is similarities/difference between an Abstract class and Interface?

Interview Question: Does Struts include its own unit tests?

Interview Question: Write code of any Action Class?

Latest Articles (in Interview)