The output of System.out.println(5>>2) in Java
In this case, 5 is represented in binary as 00000101. When we shift it right by two positions, we get 00000001, which is the binary representation of 1. Therefore, the output is 1
Read tutorialTHE TUTORIAL LIBRARY
In this case, 5 is represented in binary as 00000101. When we shift it right by two positions, we get 00000001, which is the binary representation of 1. Therefore, the output is 1
Read tutorialIn this case, 5 is represented in binary as 00000101. When we shift it left by two positions, we get 00010100, which is the binary representation of 20. Therefore, the output is 20
Read tutorialinterface contains methods that must be abstract; abstract class may contain concrete methods.
Read tutorialThe container calls the jspInit() to initialize the servlet instance. It is called before any other method, and is called only once for a servlet instance.
Read tutorialJSP Scriptlet is jsp tag which is used to enclose java code in the JSP pages. Scriptlets begins with <% tag and ends with %> tag. Java code written inside scriptlet executes every
Read tutorialJSP Decleratives are the JSP tag used to declare variables. Declaratives are enclosed in the <%! %> tag and ends in semi-colon. You declare variables and functions in the declarati
Read tutorialThere 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 co
Read tutorialExpression tag is used to insert Java values directly into the output. Syntax for the Expression tag
Read tutorialJSP Output Comments are the comments that can be viewed in the HTML source file.
Read tutorialAnswer:<jsp:useBean> tag is used to use any java object in the jsp page. Here are the scope values for <jsp:useBean> tag:
Read tutorialAnswer: Implicit objects are the objects available to the JSP page. These objects are created by Web container and contain information related to a particular request, page, or app
Read tutorialThe <jsp:forward> element forwards the request object containing the client request information from one JSP file to another file. The target file can be an HTML file, another JSP
Read tutorialOne example today. A better developer tomorrow.