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
Do'stlaringiz bilan baham: |