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 )

What types of comments are available in the JSP?

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

Is Iterator a Class or Interface? What is its use?

Interview Question: What is the difference between sessioncontext and entitycontext?

Explain garbage collection?

Explain the Polymorphism principle.

Can Entity Beans have no create() methods?

What is difference between Java Bean and Enterprise Java Bean?

What are the services provided by a J2EE container?

Interview Question: Is Struts compatible with other Java technologies?

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

Question: How is the MVC design pattern used in Struts framework?

What is bean managed transaction?

What are the contents of web module?

Name the containers which uses Border Layout as their default layout?

Latest Articles (in Interview)