Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
Rich Internet Applications and AJAX - Selecting the right technology
Effectively Taming Service Oriented Architecture (SOA) Chaos
Creating a new Google Web Toolkit (GWT) application
Processing...
Buy Java, Deals On Software Technology Store
Click here for great deals on computers, laptops, software and books
Java Interview Questions PDF Print
Written by Harshad Oak   
Jul 27, 2005 at 05:30 AM
Comments

Comment by Piyush on 2006-07-19 07:20:30
Please give me Java questions which are asked in industries e.g. how we use .zip format or what is the need of JSP when servlets are there. and also networking questions

Comment by 'Guest' on 2006-07-25 18:34:54
jsp life cycle? 8)  
 
-JSP interpretation to servlet, :upset  
-servlet conversion to byte-code, :p 
-load to web server, :roll  
-execute :grin  
-garbage collection :x

Comment by Pravin Gupta on 2006-09-12 00:08:20
What is diffrent ApplicationPage and Context Page? :-)

Comment by 'Guest' on 2006-09-28 00:47:25
How we connect from the EJB class to servlet. Do possible.

Comment by kishore on 2006-09-05 22:38:07
why are methods like notify(),notifyAll(),wait present in super class Object

Comment by 'Guest' on 2006-08-07 03:15:32
Q:- What is the difference between Web Server and Application Server?

Comment by Uday on 2006-08-24 06:11:44
A Webser does not have a EJB Container(EJB Server) and a AppServer contains an EJB Container. 
 
For eg: Tomcat has a webcontainer ONLY which can be used to deploy servlets and JSP's but one cannot deploy EJB's on tomcat. But can be deployed on Appserver such as J2EE Server /Web Logic.

Comment by sameer on 2006-09-15 06:00:44
sameer 
Location -noida 
Job Position-Dev 
Experience-2 
Skills -java,jsp,servlet,struts,j2me 
Questions & Answers: 
here i m providing questions with ans bcoz i hv seen that mostly asked questions only but dont provide ans which makes ppls to search out over net  
 
What is the difference between interface and abstract class?  
 
1Â…Â…Â…all the methods in the interface will be abstract  
 
2Â…Â…Â…abstract class may contain concrete methods.  
 
3Â…Â….interface contains variables that must be static and final;  
abstract class may contain both non-final and final variables. 
 
4Â…. members in an interface are public by default, abstract class may contain non-public members.  
 
5Â…Â…interface is used to "implements"; whereas abstract class is used to "extends".  
 
6Â….interface can be used to achieve multiple inheritance; abstract class can be used as a single inheritance. 
 
7Â….interface can "extends" another interface, abstract class can "extends" another class and "implements" multiple interfaces. 
 
8.. interface is absolutely abstract; abstract class can be invoked if a main() exists.  
 
9Â….interface is more flexible than abstract class because one class can only "extends" one super class, but "implements" multiple interfaces. If given a choice, use interface instead of abstract class 
 
QUes ---4 Why do we need interface in Java. Instead of interface we can write the methods in the class itself. Why do we need seperate interface? 
Ans  
1Â…Java don't support Multiple Inheritance. For that we can use Interface. Not always we write methods in Interface, we can also create objects in the Interface. The Object which will be shared between two classes can be created in an Interface. 
2Â…Â…Interface acts as communicator for the classes.since interface contains many empty bodies here we can take the advantage of the property of the interface and we can have diffrent implementations for same method as per its use in diffrent classes so interfaces are needed. 
 
which one is thread safe,(1)Arraylist(2)Vector(3)Map(4)Table?  
What is mean by Singletone object how to create it??? 
Ans 
Vector is thread Safe. 
Singleton Class is a class of which we can make only one object.The programm checks whether any object of that class exists or nor,if it finds the existing one then returns that Object otherwise creates a new one..  
The progamm below shows a Singleton class ..this will help u.. 
public class SingletonTest 

private static SingletonTest obj; 
private SingletonTest() 

/* ..code..*/ 

public static SingletonTest onlyInstance() 

if(obj==null) 

obj=new SingletonTest(); 
return obj; 

else 
return obj; 


 
 
u can mail ur question related queries 
[QUOTE] adonis_sameer@hotmail.com [/QUOTE]

Comment by 'Guest' on 2006-10-10 13:55:15
:upset  
too few answers

Comment by 'Guest' on 2006-10-16 07:30:14
[B]what is difference between application page and contextpage[/B]



Add This Feed Button

Enter your Email


Java Expert Interviews
RubyOnRailscreatorDavidHeinemeierHansson
Let Java retire from the spotlight of web applications in dignity
Direct Web Remoting (DWR) Creator - Joe Walker
With Direct Web Remoting (DWR) unnecessary complexity is a bug
EclipseExecutiveDirectorMikeMilinkovich
Eclipse is focused on closing in on Visual Studio - Switching campaigns are for marke
Processing...
Go to top of page  Home |
SiteMap

Copyright 2004 to 2008 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Rightrix Solutions and IndicThreads.com are independent of Sun Microsystems, Inc.

Views expressed at IndicThreads.com reflect the views of the authors alone, and do not necessarily reflect those of IndicThreads.com. IndicThreads.com and it's authors are not responsible for reader comments and opinions.

Enterprise Java J2EE JEE Portal >> IndicThreads.com