Submit Blog Login Last Submitted Blogs RSS Archive Contact  
javainterviewquestions
 
 
 
javainterviewquestions
This site will give all the relavent and important information which can help u in the interview point of view
Language: English
RSS Feeds for this Blog
Statistics
Unique Visitors: 0
Total Unique Visitors: 66661
Visitors Out: 612
Total Visitors Out: 612
 
 
Articles
OVERVIEW OF SERVLETS
2009-04-07 11:23:43
OVERVIEW OF SERVLETS Servlets provide a Java based solution used to address the problems currently associated with doing server side programming including inextensible scripting solution, platform specific API’s, and incomplete interfaces. Servlets are objects that confirm to a specific interface that can be plugged into a Java based server. Servlets are to the server side what applets [...]...
 
Exception Handling and their uses
2009-04-06 11:31:51
Q)  What is the difference between ‘throw’ and ‘throws’ ?And it’s application? Rep) Exceptions that are thrown by java runtime systems can be handled by Try and catch blocks. With throw exception we can handle the exceptions thrown by the program itself. If a method is capable of causing an exception that it does not handle, [...]...
 
How to get a Leap Year
2009-04-05 09:31:38
import java.util.Calendar.*; import java.lang.*;  //its’ a default package which will import class LeapYear { public static void main(String args[])throws Exception { Calendar cal=Calendar.getInstance(); int year=cal.get(Calendar.YEAR); if(year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) {   System.out.println(”Leap Year”);          }else  { System.out.println(”Not a Leap Year);      } } }  // The Meaning of above is every 4 year’s the LeapYear [...]...
 
EJB Interview questions
2009-04-04 14:27:24
Q) What is EJB Rep) Enterprise JavaBeans. Q) What is EJB container Rep) A container that implements the EJB component contract of the J2EE architecture. This contract specifies a runtime environment for enterprise beans that includes security, concurrency, life-cycle management, transactions, deployment, naming, and other services. An EJB container is provided by an EJB or J2EE server. Q) What is EJB container provider Rep) A [...]...
 
Define Jar,War,Ear file
2009-04-04 14:04:02
Q) What is EAR file Rep) Enterprise Archive file. A JAR archive that contains a J2EE application. Q) What is JAR file Rep) Java Archive file it contains a J2EE application. You can create a JAR file using the command jar cf XYZ.jar *.class *.gif if will compress all the .class files and the related gif files to the one file called [...]...
 
Java Interview Questions
2009-04-04 13:48:52
Q) What is CTS Rep) Compatibility test suite. A suite of compatibility tests for verifying that a J2EE product complies with the J2EE platform specification. Q) What is data Rep) The contents of an element in an XML stream, generally used when the element does not contain any subelements. When it does, the term content is generally used. When the only text in [...]...
 
J2EE Interview Questions
2009-03-29 06:05:07
Q) What is J2EE? Rep) J2EE is an environment for developing and deploying enterprise applications. The J2EE platform consists of a set of services, application programming interfaces (APIs), and protocols that provide the functionality for developing multitiered, web-based applications. Q) What is the J2EE module? Rep) A J2EE module consists of one or more J2EE components for the [...]...
 
Creating a Stateful session Bean
2009-03-25 10:00:30
To send two values to a stateful session bean and getting their sum and difference. The program makes two conversations(calls) with the session bean. In one call it gets the sum and in the second call it gets the difference. Between the calls state is to be maintained. 1 Step) Remote interface : import javax.ejb.*; import java.rmi.*; //No change from [...]...
 
Life Cycle of stateless session bean
2009-03-20 14:27:09
Stateless session bean The stateless session beans life cycle has two states: does not exist state and the method ready pool Does not exist When a bean instance is in the does not exist state, it is not an instance in the momory of the system.In other words, it has not been instantiated yet. The method ready pool Stateless bean instances enter [...]...
 
Uploading file name or image to DataBase
2009-01-26 11:05:53
This is an example of the file Uploading in Java using Servlets . This file uploading concept Works with the Java as follows Here is the Code of the file Uploading using Servlets in JAVA and saving the image and filename of image in the database Name the HTML page as file.html <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 [...]...
 
 
 
 
eXTReMe Tracker