Interview Questions

Q:

Just by seeing the signature of the bean how can you specity whether it is a Statefull of Stateless Session Bean?

Answer

The create method in a stateless bean cannot have arguments, and can only have a single method called create(). While create in Stateful bean can have arguments and could be any method starting with create string eg. create(arg1, arg2, ...). Although it is not compiler checked but in stateless bean the ejb Passivate() and ejb Active() methods has to be empty as these functions are never called by EJB container. As conceptually in stateful session bean we might need to store the clients information hence arguments in createare necessary. While in stateless bean we don't hence no arguments are necessary. It's intutive isn't intutive isn't. I my life I haven't seen such a futuristic server programming tool as EJB.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

1 1382
Q:

Difference between Java Beans & Servlets?

Answer

java bean is a reusable component, where as the servlet is the java program which extends the server capability. 

Report Error

View answer Workspace Report Error Discuss

Subject: Java

2 2013
Q:

What is Overloading Polymorphism?

Answer

Overloading allows multiple functions to exist with same name but different parameters. Again if you take bike as an example, it has a function “Start” with two forms i.e. ’Auto Start’ and ’kick start’.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2151
Q:

Explain the function of Transmission Control Block

Answer

A TCB is a complex data structure that contains a considerable amount of information about each connection

Report Error

View answer Workspace Report Error Discuss

0 5150
Q:

What is the difference between an unspecified passive open and a fully specified passive open?

Answer

An unspecified passive open has the server waiting for a connection request from a client. A fully specified passive


open has the server waiting for a connection from a specific client.

Report Error

View answer Workspace Report Error Discuss

0 2476
Q:

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Answer

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 7864
Q:

What can you do for us that others can't?

Answer

This will take an assessment of your experiences, skills and traits. Summarize concisely: "I have a unique combination of strong technical skills, and the ability to build strong customer relationships. This allows me to use my knowledge and break down information to be more user-friendly."

Report Error

View answer Workspace Report Error Discuss

Subject: About Yourself

6 1737
Q:

Rate Yourself 1-10?

Answer

I think its 8 because even if i have strength i still have weaknesess.

Report Error

View answer Workspace Report Error Discuss

Subject: About Yourself

25 7824