Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Simulados

Definir como pagina inicial

Adicionar esta pagina aos favoritos

Assinar endereco de e-mail

JSP perguntas e respostas de entrevista

Test your skills through the online practice test: JSP Quiz Online Practice Test

Diferencas relacionadas

Diferencas relacionadas

JSF vs JSPJSP vs ServletsJSP vs ASP
PHP vs JSP

Pergunta 46. How many JSP scripting elements and what are they?

There are three scripting language elements:
--declarations
--scriptlets
--expressions

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 47. Why are JSP pages the preferred API for creating a web-based client program?

Because no plug-ins or security policy files are needed on the client systems(applet does). Also, JSP pages enable cleaner and more module application design because they provide a way to separate applications programming from web page design. This means personnel involved in web page design do not need to understand Java programming language syntax to do their jobs.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 48. Can we use the constructor, instead of init(), to initialize servlet?

Yes , of course you can use the constructor instead of init(). There?s nothing to stop you. But you shouldn?t. The original reason for init() was that ancient versions of Java couldn?t dynamically invoke constructors with arguments, so there was no way to give the constructur a ServletConfig. That no longer applies, but servlet containers still will only call your no-arg constructor. So you won?t have access to a ServletConfig or ServletContext.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 49. How can a servlet refresh automatically if some new data has entered the database?

You can use a client-side Refresh or Server Push.

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.