| Back to Questions Page |
| |
| Question |
cant we call run() method directly instead of calling indirectly through the start()
method ? if we do so then what is the problem ? |
Rank |
Answer Posted By |
|
Question Submitted By :: Sudampanigrahy |
| This Interview Question Asked @ HSBC |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | yes you can call run() as ordinary method.
but while calling run() explicitly u can not achieve multi
threading.  |
| Neeraj_passion2001 |
| |
| |
| Question |
What is the singleton class in java? |
Rank |
Answer Posted By |
|
Question Submitted By :: Ragini3 |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | A singleton is a class for which only one instance can exist
within a program. In other words, only one, single object of
that particular class can be created in a program.  |
| Leelanarasimhareddy |
| |
| |
| Question |
What is servlets. |
Rank |
Answer Posted By |
|
Question Submitted By :: Raju |
| This Interview Question Asked @ HCL |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | servlet is a java program that runs inside a web
container,It is a server side program which is used to
develope web-application.  |
| Dillip |
| |
| |
|
|
| |
| Answer | A Servlet is an object that receives a request and generates
a response based on that request. The basic servlet package
defines Java objects to represent servlet requests and
responses, as well as objects to reflect the servlet's
configuration parameters and execution environment  |
| Leelanarasimhareddy |
| |
| |
| Question |
In my project i need to use either JSF or Struts.Here i
need some clarification about them and which IDE is better
for JSF development? Please post your valuble answers ASP! |
Rank |
Answer Posted By |
|
Question Submitted By :: Ravikvanama |
| This Interview Question Asked @ Infosys |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | Using NetBeans/ Intellij Idea or Websphere for Struts.
Regards
Jan  |
| Jan |
| |
| |
| Answer | Well if you are using Struts,then WSAD 5.X / RAD is the
better option.And for JSF also i would say RAD , but it
depends on version what you are using.  |
| Vabs27 [IBM] |
| |
| |
| Answer | Hi
U can User eclipse 3.2. It free and provide the build - in
support for JSF application  |
| Saini [IBM] |
| |
| |
| Question |
write a code in jsp to swap two numbers? |
Rank |
Answer Posted By |
|
Question Submitted By :: Lipu |
| This Interview Question Asked @ Wipro |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer | a,b
a=a+b;
b=a-b,
a=a-b;
write them in scriplet and declaration.  |
| Lipu |
| |
| |
| Answer | <%@ page language="java" %>
<html>
<head>
<TITLE>Swap Numbers </TITLE>
</head>
<body bgcolor="#9999FF" >
<FONT SIZE=4 COLOR=white><U>Program to Swap 2
Numbers</U></FONT><BR>
<%
int i=1;
int j=2;
out.print("<FONT SIZE=3 COLOR=white>");
out.println("Before swapping i="+i+" j="+j);
out.println("<br>");
int temp=i;
i=j;
j=temp;
out.println("After swapping i = " + i + " j = " + j);
out.print("</Font>");
%>
</body>
</html>  |
| Ritesh Prabhu |
| |
| |
| Answer | Where are the textboxes to swap the nos.........  |
| Sandip |
| |
| |
|
| |
|
Back to Questions Page |