Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
Ensuring Message Integrity Using Java and Message Digests
Synergies between J2EE, SOA and Web2.0
Compare Wicket Tapestry JSF Framework
Wicket, Tapestry and JSF side by side
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 Noname on 2005-12-05 01:26:40
What is an abstract method ? 
Abstract method is a method with no implementation 
 
What is an abstract class? 
Any class that has an abstract method in it or that does not provide an implementation for any abstract methods declared in its superclasses or implemented interfaces must be declared as an abstract class. 
* An abstract class is not required to have an abstract method in it. 
 
Q Abstract class vs interfaces 
If an abstract class contains only abstract method declarations, it should be implemented as an interface instead. 

Comment by Noname on 2005-12-05 01:46:13
An interface is a named collection of method definitions (without implementations). 
 
Interface vs Abstract Class 
An interface cannot implement any methods - abstract class can implement methods.  
A class can implement many interfaces but can have only one superclass.  
Interface can extend other interfaces

Comment by Noname on 2006-02-17 05:11:59
What does abstract mean?  
[B]null[/B]

Comment by Noname on 2006-02-01 22:27:24
J2EE transactiom follow the Distributed Transaction Processing specs , where we have 3 basic components. Application programs(AP), Resouce Manager(RM) and Transaction Manager(TM) 
so a TM interacts with the RM using a XA interface where as TM interacts with AP using  
a TX interface. 
RM can be like a JDBC driver.

Comment by Noname on 2006-02-01 01:07:33
Here's some questions I actually use to screen java applicants. These may seem simple, but you would be surprised how many experienced programmers cannot answer these. The candidate will not get hired if they cannot give a good answer for all of these: 
 
What is the difference between POST and GET? 
 
What is Request, Session and Application scope? 
 
What problems might you encounter if you have a class level variable in a servlet? 
 
What is an interface? 
 
What does the "protected" keyword do? 
 
When writing code to access the database, where is the best place to write your query? In the JSP, the servlet or somewhere else? 
 
Name some common design patterns. 

Comment by Noname on 2006-01-24 00:26:44
i would like to know What is a TX and XA Interface :?

Comment by Noname on 2006-01-25 04:08:57
Question: What is transient variable?

Comment by Noname on 2006-01-20 08:15:13
A Good Question that i was asked. 
What is a TX and XA Interface

Comment by Guest on 2006-02-24 22:06:06
heard so

Comment by Guest on 2006-03-04 12:27:37
I found a blog which describes what these interfaces mean  
 
http://javahub.blogspot.com/



Add This Feed Button

Enter your Email


Java Expert Interviews
TonyMorrisJTiger
Why pick JTiger Java Unit Testing Framework over good old JUnit?
Open-Source keeps me 'coding fit'
GraemeRocher-Grails
Grails is a breath of fresh air for Java developers
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