Cracking the Java Coding Interview pdfdrive com


often be refactored to Model 2 when application requirements change


Download 1.48 Mb.
Pdf ko'rish
bet33/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   29   30   31   32   33   34   35   36   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

often be refactored to Model 2 when application requirements change.
What is Model 2?
Using JSP and Servlet together to develop Web page. Model 2 applications
are easier to maintain and extend, because views do not refer to each other
directly.
What will be the default values of all the elements of an array defined as an
instance variable?
If the array is an array of primitive types, then all the elements of the array
will be initialized to the default value corresponding to that primitive type.
e.g. All the elements of an array of int will be initialized to 0, while that of
boolean type will be initialized to false. Whereas if the array is an array of
references (of any type), all the elements will be initialized to null. When a
thread blocks on I/O, what state does it enter?
A thread enters the waiting state when it blocks on I/O.
Why do threads block on I/O ?
Threads block on i/o (that is enters the waiting state) so that other threads
may execute while the i/o Operation is performed.
What is the difference between JSP and JSF?
JSP simply provides a Page which may contain markup, embedded Java
code, and “tags” which encapsulate more complicated logic /html.
JSF may use JSP as its template, but provides much more. This includes
validation, rich component model and life cycle, more sophisticated EL,
separation of data, navigation handling, different view technologies (instead
of JSP), ability to provide more advanced features such as AJAX, etc.
What is JSF?
JavaServer Faces (JSF) is a new standard Java framework for building
Web applications. It simplifies development by providing a component-
centric approach to developing Java Web user interfaces. JavaServer Faces

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   29   30   31   32   33   34   35   36   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling