Daily Archives: April 16, 2010

Can the same object os Stateless Session bean be shared by multiple clients? Can the same object os Stateful Session bean be shared by multiple clients?


It is possible to share the same object of stateless session bean by multiple clients. A Server maintains a pool of objects in case of stateless session bean. And every When ever we send a request to the JSP file

Posted in Servlet

Can we declare final method in abstract class?


If a method is defined as final then we can’t provide the reimplementation for that final method in it’s derived classes i.e overriding is not possible for that method. An abstract class contains one or mole abstract method. If all

Tagged with:
Posted in JAVA

Isolation levels & Transaction levels?


The isolation level measures concurrent transaction’s capacity to view data that have been updated, but not yet committed, by another transaction if other transactions were allowed to read data that are as yet uncommitted, those transactions could end up with

Tagged with:
Posted in JAVA

About “Map” data structures in Collections framework?


A map cannot contain duplicate keys; each key can map to at most one value. The Map interface provides three collection views, which allow a map’s contents to be viewed as a set of keys, collection of values, or set

Tagged with:
Posted in JAVA

Difference between Hashtable & HashMap?


Hash table is a Collection .To successfully store and retrieve objects from a hashtable, the objects used as keys must implement the hashCode method and the equals method.  Hashtable  is Synchronized and permit not null values only. Hashtable maps keys

Tagged with:
Posted in JAVA

Difference between JSP & Servlets?


Both are web applications used to produce web content that mean dynamic web pages. Bot are used to take the requests and service the clients. The main difference between them is, In servlets both the presentation and business logic are

Tagged with:
Posted in JSP

What is a servlet Context? How do you get it?


ServletContext is also called as application object . And this can be used for logging (stores some kind of information ) getting context parameters, getting the request dispatcher and storing the global data. We can get the serveletcontext using ServeletContext.

Tagged with:
Posted in Servlet

How do you implement Single Thread Model in JSP?


By simply include a page directives <%@page isThreadSafe=”false” %>

Tagged with:
Posted in JSP

<jsp:useBean> tag and it’s properties?


To separate the code from the presentation it would be good idea to encapsulate the code in java object instantiate it and use it in our jsp. This instance is variable is called ‘id’. We can also specific life time

Tagged with:
Posted in JSP

JSP Action Tags, Directive Tags & Scripting Tags?


Action Tag: These tags effect the run time behavior of the jsp page and the response set back to client tags are : <jsp: usebean> instantiate a new jsp bean class < jsp: setProperty>: setting the properties at run time

Tagged with:
Posted in JSP

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 677 other followers

Calendar
April 2010
M T W T F S S
« Jul   May »
 1234
567891011
12131415161718
19202122232425
2627282930  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 312,089 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100