| Back to Questions Page |
| |
| Question |
what is business objects? |
Rank |
Answer Posted By |
|
Question Submitted By :: Gopal |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Business objects means REAL OBJECTS which u think in ur
problem space.... i wil give a example.....In a room u
should identify different Business Object's we can
identify FAN....Bcoz Fan is an OBJECT which hav Business
Data like Speed and Business Methods like Rotate 2) Air
Conditioner is an Business Object and it speed is Business
data and LCD also and compressor is Bussiness object and
Remote is an INTERFACE  |
| Ershad Md Sk |
| |
| |
| Question |
what is session facade ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Gopal |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It is Design pattern
Problem:too many method invocations b/w client and server
will lead to network overhead,tight coupling due to
dependencies between the client and server and chance of
misuce of server business methods due to fine grained
access etc.
Solution: Use of session besn as facade to encapsulate the
complexties b/w the client and server interactions. The
session facade manages the business objects and provides a
uniform coarse grained service access layer to client.  |
| Srikanth Nallapaneni |
| |
| |
| Question |
class A{
some variables;
public void a()throws Excepion1,Exception2{....}
}
class B extends A{
variables...
public void a()throws E2,E3{.....}
}
Qns:
here override of methods occurs or not,ore else wil give
any compilation error or run properly..plz tell me briefly
whts happening with the above codes.... |
Rank |
Answer Posted By |
|
Question Submitted By :: Saumyaranjandash |
| This Interview Question Asked @ Quinnox |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | It is a good programming practice to have only a sub set of
checked exceptions classes from the throws clause of the
inherited method of the superclass.
Here in the above example E2,E3 exception are not a subset
of the exception classes of the inherited method  |
| Jeevan |
| |
| |
|
|
| |
| Answer | this will throw complie error b'coz u r overirding the
method & u overirdng method cant throw exceptions which is
not being thrown by overirded method hwevr ovrindng method
can throw runtime exceptions  |
| Dipesh [Cambridge] |
| |
| |
| Answer | Overriding methods cannot change the signature of the
overridden method. but runtime exception r not present in
signature so u can only add the runtime exception in
overriden method.  |
| Sunita [Cambridge] |
| |
| |
| Question |
Hi Friends,
Suppose you have a web appliction which consists of 100
clients are connected with Connection pooling and they are
associated with 100 connection objcet and connected
with DB sever,Due some problem DB-Server suddenly crashed
and server came to down state for a while after few minutes
DB-server once again up,Now how will I manage my Pool
Management with my 100 clients...can any one tell
me?????????????????? |
Rank |
Answer Posted By |
|
Question Submitted By :: Saumyaranjandash |
| This Interview Question Asked @ ProgressSoft |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | When the server is up all the database interactions are
executing at the time of server down are not committed. As
the server is up and start working fine (no need to worry
about the connections) connections are maintained by the
server.  |
| Sreenu Bassha |
| |
| |
| Answer | Dear Friend,
U r designing a web application,if it is crashing frequetly
means,User can loss their session,Maintain another host
machine if one server crashes the user can still access the
site.Use Load balancer server.  |
| Sathya [Cambridge] |
| |
| |
| Question |
Need 2+ yrs experienced java techinical question papaer for
company Iflex |
Rank |
Answer Posted By |
|
Question Submitted By :: Shripriya |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | just search in net u will find lot a questions
and companies does not ask questions depending on
experience it asks depends on the technologies in your CV
so be thorough with the technologies in your CV  |
| Mkcreddy |
| |
| |
| Question |
what is the difference between *.do & /do.*/?
So what is the diffenence btn extension mapping & path
mapping.What is those difference in work effect? |
Rank |
Answer Posted By |
|
Question Submitted By :: Laliasonu |
| This Interview Question Asked @ Wipro |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | hi i know only about *.do.
If we declared as *.do then from the browser we give any
url ends with .do.
ex: http://localhost/8080/../abc.do  |
| Hari |
| |
| |
| Answer | Hi Frns.
In order to achieve MVC architecture feature the
file should be extends with .do extension. Means if we are
giving file name as "Login.do" it goes to the mixture of
MVC architecture.
No idea about do.*.  |
| Shanawaz` [WiproInfo] |
| |
| |
| Answer | We can use both. *.do and do.* both are valid in struts. As
a matter of fact anything is valid when we are using the url
mapping.
*.do or routes all requests with a .do extension to the
specified page. And in the other case do.* directs all
request urls ending with a do.(html,jsp,whatever)to the
specified page  |
| Mayookh Mitra [WiproInfo] |
| |
| |
| Answer | hey,*.do is the extension match which is vallid in struts.
and /do is the directory match which is also valid,but we
should not mix up both like /do.*/,which is invalid.  |
| Tirupathi Rao [WiproInfo] |
| |
| |
| Answer | If we specify *.do in <url-pattern>, the ActionServlet
specified in <servlet-class> will respond to all the
request whicheverr comes from the client.
if we specify do.*, ActionServlet class respond only to the
request comes from the resource with "do" primaryname and
with any extension. like do.html, do.jsp, do.do  |
| Kartheeswari [WiproInfo] |
| |
| |
| Answer | whatever Tirupathi Rao told it is correct. I am adding few
more words to this question.We need to follow either
extension matching or directory match to achieve "Front
controller" design pattern. By using this design pattern
only we can able to trap all the requests to Action classes
and forwarding control to ActionServlet class.  |
| Ramanjaneyulu [WiproInfo] |
| |
| |
| Question |
What is Ideal Design of Class? |
Rank |
Answer Posted By |
|
Question Submitted By :: Guest |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | declare variables as Private and methods which accesses
variables as public.  |
| Venkat |
| |
| |
| Answer | Ideal Design of Class is First identity Different Business
Objects and identity Business Data & Business Methods on
which u r working on............Think U are working on
SHAPE class think shape is an object and Draw & erase are
business methods which u should Operate ON..And shape has
Different data objects like Square,Rectangle  |
| Ershad Md Sk |
| |
| |
| Question |
what is session tracking?what are types of session
tracking ?and when to cookies,when to use
sessionmanagement,whent use url rewriting technique,plz
explain briefly? |
Rank |
Answer Posted By |
|
Question Submitted By :: Jawahar |
| This Interview Question Asked @ Satyam , Satyam |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Session tracking is a mechanism that servlets use to
maintain state about a series of requests from the same
user (that is, requests originating from the same browser)
across some period of time.
Cookies are a mechanism that a servlet uses to have clients
hold a small amount of state-information associated with
the user. Servlets can use the information in a cookie as
the user enters a site (as a low-security user sign-on, for
example), as the user navigates around a site (as a
repository of user preferences for example), or both.  |
| Sachin |
| |
| |
| Answer | Session tracking is a techinque where we can track the
number of attempts made by the web browser and as per my
knowledge there are 3 kinds of session tracking mechanisms
mentioned
1.HttpCookies:we can use HttpCookie to store temporary
information.
2.URL Rewriting:By Using this we can add or append more
information to the session.
3.Hidden form fields:which means we can have hidden field
inside the form and this can be used to store information
about the session.
But one disadvantage with this HiddenFormField is it works
if every page is dynamically generated.  |
| Raghunath Bj |
| |
| |
| Question |
how can u handle run time exception in java? explain with
brief explanation with examples? |
Rank |
Answer Posted By |
|
Question Submitted By :: Jawahar |
| This Interview Question Asked @ CTS |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | public class ExceptionalClass {
public void method1() throws CheckedException {
// ... some code
throw new CheckedException( "something bad
happened" );
}
public void method2( String arg ) {
if( arg == null ) {
throw new NullPointerException( "arg passed to
method2 is null" );
}
}
public void method3() throws CheckedException {
method1();
}
}
Contrast method1() with method2(). When you
make a call to method2(), you don't have to do so within a
try/catch block. Since you do not have to catch the
exception, the exception is said to be unchecked; it is a
runtime exception. A method that throws a runtime exception
need not declare the exception in its signature.  |
| Pavithra |
| |
| |
| Answer | Runtime exceptions represent problems that are detected by
the runtime system. This includes arithmetic exceptions
(such as when dividing by zero), pointer exceptions (such
as trying to access an object through a null reference),
and indexing exceptions (such as attempting to access an
array element through an index that is too large or too
small).
Runtime exceptions can occur anywhere in a program and in a
typical program can be very numerous. Typically, the cost
of checking for runtime exceptions exceeds the benefit of
catching or specifying them. Thus the compiler does not
require that you catch or specify runtime exceptions,
although you can.  |
| Pavithra |
| |
| |
| Question |
how can you retrive information from database by using
hashmap/arraylist ,plz explain with example briefly? |
Rank |
Answer Posted By |
|
Question Submitted By :: Jawahar |
| This Interview Question Asked @ Satyam |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | import java.util.*;
import java.sql.*;
public class Jdbc
{
public static void main(String[] a)
{
Connection conn=null;
try
{
String s1="Driver name for registration";
Class.forname(s1);
String url="Driver Port No name";
String username="Database Username";
String password="Database password";
conn=Drivermanager.getConnection(url,username,password);
String sql="SELECT name,address FROM tb"
Statement stmt=conn.createStatement(sql);
Resultset rs=stmt.executeQuery();
ArrayList al=new List();
while(rs.hasnext())
{
al.add(index,rs.getString());
}
rs.close();
stmt.close();
conn.close();
}
//handle Exceptions
}
}  |
| None |
| |
| |
| Question |
how can you switch onemodule to another module by switch
action class plz explain with exapmle? |
Rank |
Answer Posted By |
|
Question Submitted By :: Jawahar |
| This Interview Question Asked @ Satyam |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | hi,
let us a senario in our example we have two modules called
1.Module1
2.Module2
we have one main.jsp which is there in default module
main.jsp
--------
<html:form action="switch"?
prefix="/Module1"&page="/mod1.jsp"/>
<html:form action="switch"?
prefix="/Module2"&page="/mod2.jsp"/>
</html:form>
we have to take the struts-config.xml(default config file)
<action
type="org.apache.struts.actions.SwitchAction"
name=""
</action>
and dont forget to configure module specific configure
files in web.xml(mandatory)
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-
class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/Module1</param-name>
<param-value>/WEB-INF/struts-module1-config.xml</param-
value>
</init-param>
<init-param>
<param-name>config/Module2</param-name>
<param-value>/WEB-INF/struts-module2-config.xml</param-
value>
</init-param>
</servlet>
...
...
</web-app>
and many more but these things r very inportant and other
is asusual normal struts program.
if ur not clarified plz mail to ur problem my email id
metari.gangadhar@gmail.com
bye  |
| M.gangadhar |
| |
| |
|
| |
|
Back to Questions Page |