JSP вопросы и ответы для интервью
Question: What is the difference between variable declared inside a declaration and variable declared in scriplet?Answer: Variable declared inside declaration part is treated as a instance variable and will be placed directly at class level in the generated servlet.<%! int k = 10; %> Variable declared in a scriptlet will be placed inside _jspService() method of generated servlet.It acts as local variable. <% int k = 10; %> |
Сохранить для повторения
Добавьте этот элемент в закладки, отметьте как сложный или поместите в набор для повторения.
Войдите, чтобы сохранять закладки, сложные вопросы и наборы для повторения.
Это полезно? Да Нет
Самое полезное по оценкам пользователей:
- What is a JSP and what is it used for?
- What are the two kinds of comments in JSP and what's the difference between them ?
- What is difference between custom JSP tags and beans?
- Is JSP technology extensible?
- What is JSP page?