Die meistgefragten Interviewfragen und Antworten sowie Online-Tests
Lernplattform fur Interviewvorbereitung, Online-Tests, Tutorials und Live-Ubungen

Baue deine Fahigkeiten mit fokussierten Lernpfaden, Probetests und interviewreifem Inhalt aus.

WithoutBook vereint themenbezogene Interviewfragen, Online-Ubungstests, Tutorials und Vergleichsleitfaden in einem responsiven Lernbereich.

Interview vorbereiten

Probeprufungen

Als Startseite festlegen

Diese Seite als Lesezeichen speichern

E-Mail-Adresse abonnieren
WithoutBook LIVE Probeinterviews JSP Verwandte Interview-Themen: 39

Interview Questions and Answers

Entdecke die wichtigsten JSP Interviewfragen und Antworten fur Einsteiger und erfahrene Kandidaten zur Vorbereitung auf Bewerbungsgespraeche.

Insgesamt 49 Fragen Interview Questions and Answers

Das beste LIVE-Probeinterview, das du vor einem Interview ansehen solltest

Entdecke die wichtigsten JSP Interviewfragen und Antworten fur Einsteiger und erfahrene Kandidaten zur Vorbereitung auf Bewerbungsgespraeche.

Interview Questions and Answers

Suche eine Frage, um die Antwort zu sehen.

Fragen und Antworten fur mittleres Niveau / 1 bis 5 Jahre Erfahrung

Frage 1

What is difference between custom JSP tags and beans?

  • A custom JSP tag has to be interpreted and run inside a JSP; a Java Bean does not.
  • A custom JSP tag has to extend the javax.servlet.jsp.tagext.Tag interface; a Java Bean does not.
  • A custom JSP tag might use other Java Beans to do its work, but the reverse is not true.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 2

What is the difference between a Scrollbar and a ScrollPane in JSP?

A Scrollbar is a Component, but not a Container. A ScrollPane is a Container. A ScrollPane handles its own events and performs its own scrolling.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 3

How do I use a scriptlet to initialize a newly instantiated bean?

A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically, the body will contain scriptlets or jsp:setProperty tags to initialize the newly instantiated bean, although you are not restricted to using those alone.

The following example shows the “today” property of the Foo bean initialized to the current date when it is instantiated. Note that here, we make use of a JSP expression within the jsp:setProperty action.

<jsp:useBean id=”foo” class=”com.Bar.Foo” >

<jsp:setProperty name=”foo” property=”today”

value=”<%=java.text.DateFormat.getDateInstance().format(new java.util.Date()) %>” / >

<%– scriptlets calling bean setter methods go here –%>

</jsp:useBean >
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 4

What's a better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or Synchronization?

Although the SingleThreadModel technique is easy to use, and works well for low volume sites, it does not scale well. If you anticipate your users to increase in the future, you may be better off implementing explicit synchronization for your shared data. The key however, is to effectively minimize the amount of code that is synchronized so that you take maximum advantage of multithreading.

Also, note that SingleThreadModel is pretty resource intensive from the server’s perspective. The most serious issue however is when the number of concurrent requests exhaust the servlet instance pool. In that case, all the unserviced requests are queued until something becomes free – which results in poor performance. Since the usage is non-deterministic, it may not help much even if you did add more memory and increased the size of the instance pool.
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen
Frage 5

How is scripting disabled?

Scripting is disabled by setting the scripting-invalid element of the deployment descriptor to true. It is a subelement of jsp-property-group. Its valid values are true and false. The syntax for disabling scripting is as follows:

<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<scripting-invalid>true</scripting-invalid>
</jsp-property-group>
Zum Wiederholen speichern

Zum Wiederholen speichern

Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.

Meine Lernbibliothek offnen
Ist das hilfreich?
Kommentar hinzufugen Kommentare ansehen

Am hilfreichsten laut Nutzern:

Copyright © 2026, WithoutBook.