ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories >> Software >> Java-Related >> Java-Related-AllOther
 
 


 

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.
 
0
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.
 
0
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.
 
0
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
 
0
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
 
0
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.
 
0
Vabs27
[IBM]
 
 
Answer
Hi
U can User eclipse 3.2. It free and provide the build - in
support for JSF application
 
0
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.
 
3
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>
 
0
Ritesh Prabhu
 
 
Answer
Where are the textboxes to swap the nos.........
 
0
Sandip
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com