4
14.Explain the text effects in CSS 3.
CSS3 – Text contains several extra features.
text-overflow
word-wrap
word-break
The most commonly used property in CSS3
Values Description
text-align-last Used to align the last line of the text
text-emphasis Used to emphasis text and color
text-overflow Used to determines how overflowed content that is not displayed is signaled to
users
word-break Used to break the line based on word
word-wrap
Used to break the line and wrap onto next line
15.Explain the session objects in JSP.
Session object
A session is defined as a series of related interaction between a single client and the server. A
session object is created on the server. It is an unique identifier and is called session id. This id is given to
the client for communicating with the server. If the user is accessing a site having more than one JSP or
servlet pages, the same session id is shared among all the page.
Method
Description
long getCreationTime
This method returns the time when the
session was created
string getId()
This method returns the unique identifier
assigned to the session.
long getLastAccessedTime()
This method returns the time when the
user sent a last request associated with
this session.
Void setMaxIn activeInterval(int interval)
This method is used to give the maximum
length of time in seconds that the servlet
engine keeps the session open if no user
requests have been made.
void setMaxInactiveInterval()
This method returns the maximum time
interval in seconds that the servlet engine
keeps this session open between client
requests.
boolean isNew(0)
This method returns true if a new session
was created, but client has not joined.
16.Explain packet switching.
Packet Switching
Short comings of message switching gave birth to an idea of packet switching. The entire
message is broken down into smaller chunks called packets. The switching information is added in the
header of each packet and transmitted independently.
It is easier for intermediate networking devices to store small size packets and they do not take
much resources either on carrier path or in the internal memory of switches.