Daily Archives: April 17, 2010

Which is faster in execution-JSP or SERVLET ? Why?


Servlet is faster in execution as every jsp is changed on converted to servlet before starting the execution. Thus the server need to spend some time to convent a JSP file to servlet at it’s first time execution. But developing

Posted in JSP

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

Posted in JAVA

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 JSP

How we declare a synchronized block? What does this represent in the Declaration of sunchronized block?


When two or more threads need to access to a shared resource they need some way to ensure that the resource will be used by only one thread at a time. The process by which this achieved is called synchronization.

Posted in JAVA

What is the Max amount of information that can be saved in a Session Object?


As such there is no limit on the amount of information that can be saved in a Session Object. Only the RAM available on the server machine is the limitation. The only limit is the Session ID length(Identifier) , which should

Posted in Servlet

What are Good Ways of Debugging a Servlet? Are IDE’s which support Servlet Debugging?


There are couple of Methods. Firstly servers like JRun and others provide separate logs where all your Print requests will print their data into. For example requests to System.out. and System.err go to different log files. If this features is

Posted in Servlet

What is Server Side Push and how is it implemented and when is it useful?


Server Side push is useful when data needs to change regularly on the clients application or browser , without intervention from client. Standard examples might include apps like Stock’s Tracker, Current News etc. As such server cannot connect to client’s

Posted in JSP

What is difference between stateless and stateful session beans?


Stateless: 1) Stateless session bean maintains across method and transction 2) The EJB server transparently reuses instances of the Bean to service different clients at the per-method level (access to the session bean is serialized and is 1 client per

Tagged with:
Posted in JSP

What are the difference between interface and abstract class?


The key difference between an interface and the corresponding abstract class is that a class or interface can have unlimited number of immediate super interface but it can only have one super class. There are two primary axes of “inheritance”

Tagged with:
Posted in JAVA

What is the difference between callable statements, prepare statements , createstatements?


callable statements: callable statements are used to retrieve the stored procedures from the database. ie., these statements are used when two or more sql statements are retrived over and over. prepare statement: theser are precompiled statements which are stored in

Posted in JDBC

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

Join 679 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
  • 320,230 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100