Stay with Java

Stay with Java

Share

31/07/2015

What are the types of Session Tracking ?

Following are the popular ways of session tracking:

a.) URL rewriting: In this method of session tracking, some extra data is appended at the end of the URL, which identifies the session. This method is used for those browsers which do not support cookies or when the cookies are disabled by the user.

b.) Hidden Form Fields: This method is similar to URL rewriting. New hidden fields are embedded by the server in every dynamically generated form page for the client. When the form is submitted to the server the hidden fields identify the client.

c.) Cookies: Cookie refers to the small amount of information sent by a servlet to a Web browser. Browser saves this information and sends it back to the server when requested next. Its value helps in uniquely identifying a client.

d.) Secure Socket Layer (SSL) Sessions

16/07/2015

Can you override private or static method in Java ?

You can not override private or static method in Java.

if you create similar method with same return type and same method arguments in child class then it will hide the super class method, this is known as method hiding.

Similarly you cannot override private method in sub class because it's not accessible there, what you do is create another private method with same name in child class.

Want your business to be the top-listed Computer & Electronics Service in Hyderabad?
Click here to claim your Sponsored Listing.

Website

Address


Hyderabad
500072