Find jobs | Jobseekers
Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career Services Resume Services Interview questions Articles Books
Content
Java interview part 1
Java interview part 2
Java interview part 3
Java interview part 4
Java interview part 5
Core java
JDBC
JSP
EJB
JNI
Servlets
Struts
Java threading
Java web services
J2EE
J2ME
JMS
Internationalization
JavaScript
RMI
 
ASP.NET | ADO.NET | AJAX
C#.NET | VB.NET | PHP
NET Remoting | NET Interview
  
C | C++ | Java | Oops
Data Structure | OS
   
Database concepts | Oracle
SQL Server | Biztalk | Sharepoint
Notification services
Reporting Services
Service-oriented architecture
Data warehousing | MySQL
  
Project Management 
Linux | Testing | Networking
Software engineering 
  
UML | XML | HTML | SOAP 
CSS | VBScript  | Web Services
   
CV Cover letter | Interview 
HR | Soft skills | GD 
Working from Home 
Tutorial
ASP.NET | VB.NET | C#.NET     
Remoting.NET | Web service
Remoting overview | ADO.NET
UML | Sql server 
More links
JavaServer Faces 
OpenCms Application Overview 
EJB 3 Entities 
Oracle Web RowSet 
Books on Java
Java EE 5 Development with NetBeans 6 
OpenCms 7 Development 
EJB 3 Developer Guide 
JDBC 4.0 and Oracle JDeveloper for J2EE Development 

Interview Questions


Java Interview questions part 5
Part 1 | Part 2 | Part 3 | Part 4 | Part 5 <<Previous  Next>>

Question - What is preinitialization of a servlet?

Answer
The process of loading a servlet before any request comes in is called preloading or preinitializing a servlet. Normally, a container doesn't initialize the servlets as it starts up, it initializes a servlet when it receives a request for that servlet first time.

Question - What is the difference between JSP and Servlets? 
Answer
JSP supports only HTTP protocol. But a servlet can support any protocol like HTTP, FTP, SMTP etc. 
Question - What is the difference between Difference between doGet() and doPost()?
Answer
GET Method: All data we are passing to Server will be displayed in URL. Here we have size limitation.

POST Method: In this method we don’t have any size limitation. All data passed to server will be hidden; User cannot able to see this info on the browser.

Question - What's the difference between servlets and applets?  
Answer
Servlets executes on Servers while Applets executes on browser. 
Unlike applets, servlets have no graphical user interface.  
Question - What is JSP?  
Answer
JSP is a technology that returns dynamic content to the Web client using HTML, XML and JAVA elements. JSP page looks like a HTML page but is a servlet. It contains Presentation logic and business logic of a web application.  

Question - What is the purpose of setAutoCommit do?   

Answer
A connection is in auto-commit mode by default which means every SQL statement is treated as a transaction and will be automatically committed after it is executed. If you want all statements not to be committed until you call the method commit explicitly, you need to disable auto-commit mode. 
con.setAutoCommit(false);    

Part 1 | Part 2 | Part 3 | Part 4 | Part 5




 
Today's Hot Jobs
C++  SQL Server
.NET  Java  Oracle
Finance  Marketing
Seekers  Employers
Copyright © 2008 CareerRide.com. All rights reserved.