CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
J2EE Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM J2EE INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

J2EE Interview Questions & Answers - Learning Mode

J2EE (Java 2 Platform, Enterprise Edition) technology and its component-based model simplify enterprise development and deployment. The J2EE platform manages the infrastructure and supports the Web services to enable development of secure, robust and interoperable business applications.

Try J2EE Interview Questions & Answers - Exam Mode
Subcategories for J2EE Interview Questions & Answers - Learning Mode

Following are sub categories for which Interview Questions & Answers are available under J2EE Interview Questions & Answers - Learning Mode. Please select the appropriate sub-category:-

Applet Interview Questions & Answers (17) Learning Mode | Exam Mode

Core Java Interview Questions & Answers (97) Learning Mode | Exam Mode

Eclipse Interview Questions & Answers (37) Learning Mode | Exam Mode

EJB Interview Questions & Answers (269) Learning Mode | Exam Mode

Hibernate Interview Questions & Answers (59) Learning Mode | Exam Mode

J2ME Interview Questions & Answers (194) Learning Mode | Exam Mode

J2SE Interview Questions & Answers (59) Learning Mode | Exam Mode

Java Interview Questions & Answers (1411) Learning Mode | Exam Mode

Java Beans Interview Questions & Answers (58) Learning Mode | Exam Mode

Java Patterns Interview Questions & Answers (17) Learning Mode | Exam Mode

Java Security Interview Questions & Answers (24) Learning Mode | Exam Mode

Java Swing Programing Interview Questions & Answers (26) Learning Mode | Exam Mode

JBOSS Interview Questions & Answers (20) Learning Mode | Exam Mode

JDBC Interview Questions & Answers (217) Learning Mode | Exam Mode

JMS Interview Questions & Answers (126) Learning Mode | Exam Mode

JSF Interview Questions & Answers (67) Learning Mode | Exam Mode

JSP Interview Questions & Answers (206) Learning Mode | Exam Mode

RMI Interview Questions & Answers (10) Learning Mode | Exam Mode

Servlet Interview Questions & Answers (191) Learning Mode | Exam Mode

Socket Programing Interview Questions & Answers (19) Learning Mode | Exam Mode

Springs Interview Questions & Answers (80) Learning Mode | Exam Mode

Struts Interview Questions & Answers (105) Learning Mode | Exam Mode

Web Sphere Interview Questions & Answers (16) Learning Mode | Exam Mode

1 2 3 4 Next

Sort By : Latest First | Oldest First | By Rating

J2EE Interview Questions & Answers - Learning Mode
Try J2EE Interview Questions & Answers - Exam Mode
Question: what is J2EE and what are the features of it?

Answer: J2EE Stands for Java 2 Enterprise Edition.
J2EE is an environment for developing and deploying enterprise applications.
The J2EE platform consists of
1] a set of services,
2] API [application programming interfaces]
3] protocols,
which provides the functionality necessary for developing multi-tiered, web-based applications.
Source: CoolInterview.com
Question: What is meant by polymorphism in java?How can we achieve polymorphism?Explain with an example.

Answer: Any thing that exist in more than one form is known as the polymorphism.

Example of ploymorphism.
1. Abstract class(Because, In the abstract super class its define some general information, In the subclass it must be override. It it's many form.(It supports single Inheritance))

2. Interface( same as above but supporting multiple inheritance )

3. Method overloading( In the class having a method is same return type but different signature )

Source: CoolInterview.com
Question: what is the difference between EJB 3.0 and Hibernate?

Answer: EJB 3.0

Part of J2EE 1.5 specification uses JPA for persistence Drastically simplifies EJB persistence mechanism compared to EJB 2.0 and earlier versions.

Uses JPQL for performing Database query operations closely tied to J2EE application server container.

Hibernate:

Popular Open Source ORM persistence framework.Uses HQL for queries to the DB.Independent of any application server container.

Good Integration with other open source framework like Struts, Spring,e Source: CoolInterview.com
Question: How to Create Object without using the keyword "new" in java?

Answer: Yes, It is possible to create object in java without using "new"
like...

String s = "java";

Here java is a String object. Source: CoolInterview.com
Question: What is J2EE module ?


Answer: A software unit that consists of one or more J2EE components of the same container type and one deployment descriptor of that type. There are four types of modules: EJB, Web, application client, and resource adapter. Modules can be deployed as stand-alone units or can be assembled into a J2EE application. Source: CoolInterview.com
Question: Can anyone explain me the accurate difference between heap and stack in memory usage of java....... it is highly appreciable if i get the answer with real time example or examples....


Answer: Heap: in heap memory objects will be created.whenever JVM loads a class,a method and heap area are immediately created in it.
stack:this is the place where java methods are executed,each method is executed on a separate frame in java stack. Source: CoolInterview.com
Question: how do we deploy an jsp application in tomcat?

Answer: hi,
1. frist of all make a jsp page,then save it in tomcat/webapps/examples/jsp
2.Start tomcat and then give url in web browser Http:\localhost:8080examplesjsppage.jsp Source: CoolInterview.com
Question: What is hibernate, where to use the hibernate and advantages of hibernate?

Answer: Hibernate is nothing but ORM(Object relation mapping) tool. Source: CoolInterview.com
Question: Difference between save and saveorupdate ?

Answer: save() ? This method in hibernate is used to stores an object into the database. It insert an entry if the record doesn?t exist, otherwise not.

saveorupdate () -This method in the hibernate is used for updating the object using identifier. If the identifier is missing this method calls save(). If the identifier exists, it will call update method. Source: CoolInterview.com
Question: What is "application configuration resource file" ?


Answer: An XML file used to configure resources for a Java Server Faces application, to define navigation rules for the application, and to register converters, Validator, listeners, renders, and components with the application. Source: CoolInterview.com
Question: What is the MVC on struts.

Answer: MVC stands Model-View-Controller.

Model: Model in many applications represent the internal state of the system as a set of one or more JavaBeans.

View: The View is most often constructed using JavaServer Pages (JSP) technology.

Controller: The Controller is focused on receiving requests from the client and producing the next phase of the user interface to an appropriate View component. The primary component of the Controller in the framework is a servlet of class ActionServl Source: CoolInterview.com
Question: What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?

Answer: There are no structural differences between the files. They are all archived using zip-jar compression. However, they are intended for different purposes.
1. Jar files (files with a .jar extension) are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.
2. War files (files with a .war extension) are intended to contain complete Web applications. In this context, a Web application is defined as a single group of files, classes, resources, .jar files that can Source: CoolInterview.com
Question: What is the difference between Session bean and Entity bean ?

Answer: The Session bean and Entity bean are two main parts of EJB container.
Session Bean
1. represents a workflow on behalf of a client
2. one-to-one logical mapping to a client.
3. created and destroyed by a client
4. not permanent objects
5. lives its EJB container(generally) does not survive system shut down
--two types: stateless and stateful beans
Entity Bean
1. represents persistent data and behavior of this data.
2. can be shared among multiple clients
3. persis Source: CoolInterview.com
Question: What is client-certificate authentication ?


Answer: An authentication mechanism that uses HTTP over SSL, in which the server and, optionally, the client authenticate each other with a public key certificate that conforms to a standard that is defined by X.509 Public Key Infrastructure. Source: CoolInterview.com
Question: How can we done caching of servlet?
How can we log out from a page?
What is the difference between JspWriter & PrintWriter?


Answer: We can cache a servlet by using get method instead of using post method.<br>2)by using session.invalidate() we can remove the session object which is used mostly inorder to logout from a page<br>3)JspWriter is similar to PrintWriter.the JspWriter object is used to send output to the client and display in the brower.<br><br>The only difference is JspWriter is PrintWriter is mostly used in service method of servlets whereas JspWriter is used by the jsp compiler to create an Source: CoolInterview.com
Question: What is "archiving" ?


Answer: The process of saving the state of an object and restoring it. Source: CoolInterview.com
Question: What is "asant" ?


Answer: A Java-based build tool that can be extended using Java classes. The configuration files are XML-based, calling out a target tree where various tasks get executed. Source: CoolInterview.com
Question: What is J2EE component ?


Answer: A self-contained functional software unit supported by a container and configurable at deployment time. The J2EE specification defines the following J2EE components: Application clients and applets are components that run on the client. Java servlet and JavaServer Pages (JSP) technology components are Web components that run on the server. Enterprise JavaBeans (EJB) components (enterprise beans) are business components that run on the server. J2EE components are written in the Java programming l Source: CoolInterview.com
Question: All the method in interface to be implemented in derived class.Suppose The particular interface is used 1000 of classes,we need some changes to the method in interface,what to be done?

Answer: No problems at all.just change the implementation details in the class concerned Source: CoolInterview.com
Question: What is the difference and advantage of j2ee over java?

Answer: j2ee stands for java2 enterprise edition it is collection of organizations and people who work on a project and deliver it to the customer.it is for enterprise.whereas java is not for an enterprise.j2ee is a java version.if u knw java u can understand j2ee Source: CoolInterview.com

1 2 3 4 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.03125 Seconds