What are the differences between get and load methods?



What are the differences between get and load methods?..

Answer / Nitin Dhiman

In JSP, the get and load methods have different purposes:
1. get(): This method is used to retrieve a variable's value that was previously set using the set() method.
2. load(): This method is called when the servlet container initializes a JSP page. It is used to perform any initialization tasks, such as loading data from a database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSP Interview Questions

What is the purpose of creating custom tags?

1 Answers  


Is jsp platform dependent?

1 Answers  


What is a tag file?

1 Answers  


What is the <jsp:forward> standard action?

1 Answers  


Mention the jstl core tags.

1 Answers  


Why jsp and servlets are used?

1 Answers  


How do you delete the session data?

1 Answers  


Mention the scope values for <jsp.usebean> tag.

1 Answers  


What is server context?

1 Answers  


Explain the jsp implicit objects?

1 Answers  


What is the <jsp:param> standard action?

1 Answers  


What is difference between sendredirect and forward?

1 Answers  


Categories