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 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: 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: 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: Can we write any static block or any static method in jsp program?



Answer: Yes we can write static resource in jsp program. Source: CoolInterview.com
Question: what is IOC in springs?

Answer: IOC, is inversion of control design
pattern which talks about dynamically
injecting dependency to a program.
Spring is a framework developed by
open source community which leverages
the design to make the applications
flexible enough to adapt to any
implementation during the runtime.

For e.g. the client program would just deal with interfaces and call methods to the interfaces. But the class implementation of interface would be injected by the spring container in run 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: 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
Question: Define Hash table?

Answer: Hash tables are good for doing a quick search on things.

For instance if we have an array full of data (say 100 items).If we knew the position that a specific item is stored in an array, then we could quickly access it. For instance, we just happen to know that the item we want it is at position 3; I can apply:
myitem=myarray[3];



There are many different hash functions. Some hash functions will take an integer key and turn it into an index. A common one is the divisio Source: CoolInterview.com
Question: Why java have no pointer?

Answer: Java does not have pointers. But Java does have references. A reference is an abstract identifier for an object. It is not a pointer. A reference tags a particular object with a name in the Java virtual machine so that the programmer may refer to it. How exactly the virtual machine implements references at the level of machine code is VM-dependent and completely hidden from the programmer in any case. Most VMs including Sun?s use handles, not pointers. A handle is a pointer to a pointer. At the Source: CoolInterview.com
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 hibernate, where to use the hibernate and advantages of hibernate?

Answer: Hibernate is nothing but ORM(Object relation mapping) tool. Source: CoolInterview.com
Question: What is the difference between application server & web server ?

Answer: Application server can have web container as well as ejb container but web server can have only the web container. Example of Application Server : JBOSS<br>Web Server : TOMCAT 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: How hibernate is database independent explain?

Answer: Only changing the property


<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property> and

<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>

<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property> and

<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>


full database can Source: CoolInterview.com
Question: Connection is an interface.But how we can able to make the object of Connection interface
i.e-
Connection con=DriverManager.getConnection();
Can you write a program as the above statement.


Answer: Here we are using the concept of anonymous inner class.DriverManager.getConnection() returns object of that class which implements the Connection interface,which has no name. 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 you tell me the steps for how to create and execute and run the Ejb simple stateless session application in websphere application server6.0 and Ide is RAD6.0

Answer: No answer available currently.
Question: What is Connection Pooling mechanism?

Answer: connection pooling is a mechanism to solve the problem regarding DRIVER MANAGER class , so in connection pooling we r using datasource object ... that is used to stablished the no of connection Source: CoolInterview.com
Question: What is the J2EE module?

Answer: A J2EE module consists of one or more J2EE components for the same container type and one component deployment descriptor of that type. Source: CoolInterview.com
Question: What is "attribute"?


Answer: A qualifier on an XML tag that provides additional information. Source: CoolInterview.com

1 2 3 4 Next



India News Network
Latest 20 Questions
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
"Holiday Packages" announced as an advertisement are an example of _________: (a) Offer (b) Counter Offer (c) Invitation to Offer (d) None of the above
A match fixing contract between a player and a broker is a: (a) Valid Contract (b) Unenforceable Contract (c) Void Contract (d) Illegal Contract
When a bookseller sells a book on cash payment then it is called as ___________: (a) Unilateral Contract (b) Bilateral Contract (c) Executed Contract (d) Executory Contract
____________ agreements are created by situation: (a) Written (b) Oral (c) Void (d) Implied
Cache = 0.03125 Seconds