in Education by
Can <!–comment–> and <%–comment–%> be used alternatively in JSP? (a) True (b) False The question was asked in an online interview. My enquiry is from JSP Elements in chapter Session Management, JSP & API of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Correct choice is (b) False For explanation I would say: <!–comment–> is an HTML comment. <%–comment–%> is JSP comment.

Related questions

0 votes
    Which page directive should be used in JSP to generate a PDF page? (a) contentType (b) generatePdf (c) typePDF (d ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which tag should be used to pass information from JSP to included JSP? (a) Using tag (b) Using tag (c) Using ... , JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following action variable is used to include a file in JSP? (a) jsp:setProperty (b) jsp:getProperty ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which one is the correct order of phases in JSP life cycle? (a) Initialization, Cleanup, Compilation, Execution (b) ... & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which one of the following is correct for directive in JSP? (a) (b) (c) (d) This question was addressed to me ... , JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Java code is embedded under which tag in JSP? (a) Declaration (b) Scriptlet (c) Expression (d) Comment This ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
0 votes
    How private method can be called using reflection? (a) getDeclaredFields (b) getDeclaredMethods (c) getMethods (d) ... API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How private field can be called using reflection? (a) getDeclaredFields (b) getDeclaredMethods (c) getMethods (d) ... API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which of the following is used for session migration? (a) Persisting the session in database (b) URL rewriting (c) ... & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which tag is used to set a value of a JavaBean? (a) (b) (c) (d) This question was posed to me in a ... Management, JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What is used to get class name in reflection? (a) getClass().getName() (b) getClass().getFields() (c) getClass( ... , JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    How can we invalidate a session? (a) session.discontinue() (b) session.invalidate() (c) session.disconnect() (d) ... JSP & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    _jspService() method of HttpJspPage class should not be overridden. (a) True (b) False This question was posed to me ... & API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which object stores references to the request and response objects? (a) sessionContext (b) pageContext (c) HttpSession ... API of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
...