Define Static Block.



Define Static Block...

Answer / Arendra Kumar

A static block in Java is a block of code that is executed when a class is loaded into memory. It can be used for initializing static variables or performing one-time initialization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What is jsp usebean?

1 Answers  


How can I set a cookie and delete a cookie from within a jsp page?

1 Answers  


What are advantages of jsp over asp, php, pure servlets and others?

1 Answers  


What is session tracking in jsp?

1 Answers  


What are the implicit el objects in jsp?

1 Answers  


Which jsp lifecycle methods can be overridden?

1 Answers  


List the different scope values for the <jsp:usebean> tag in jsp?

1 Answers  


i have one jsp page. inside this, String s=req.getParameter("raja");...... now we want to remove duplicate characters and o/p will be like "rj".... what is the logic?

1 Answers  


How can we stop errors on display in a jsp page?

1 Answers  


What is attribute in jsp?

1 Answers  


Which one is correct order of phases in jsp life cycle?

1 Answers  


Why do we need servlets and jsp?

1 Answers  


Categories