GeekInterview.com
Series: Subject: Topic:

J2EE Interview Questions

 
Sub Categories (+ View)
Subject Name
Questions
Answers
Last updated
561
3349
May
22nd,
2012
180
498
Feb
5th,
2012
1108
1847
May
26th,
2012
149
462
May
21st,
2012
17
47
Oct
2nd,
2011
200
696
Apr
14th,
2012
22
29
Apr
16th,
2012
175
823
May
17th,
2012
109
629
May
22nd,
2012
211
182
May
25th,
2012
Showing Questions 1 - 20 of 113 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

What is difference between war file and ear file?

Asked By: srinu | Asked On: Apr 19th, 2006

Answered by: patie on: May 22nd, 2012

JAR - Java ARchive Its a file format based on the ZIP file format and similar to ZIP format this is also used for aggregating many files (many be of different types) into one aggregate file. This agg...

Answered by: what is difference between War file and Ear file? on: Oct 12th, 2011

jar files: These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files. .war files: These files are with the .war extension. Th...

3-tier architecture in Java

Asked By: shubhodeep | Asked On: Nov 11th, 2005

Explain about 3-tier architecture in Java

Answered by: ROOPESH JAMES on: May 21st, 2012

A three-tier architecture is any system which enforces a general separation between the following three parts: 1. Client Tier or user interface 2. Middle Tier or business logic 3. Data Storage Tie...

Answered by: atilakmca on: Sep 26th, 2007

middle tier is primarly based on processing the bussiness logic. The main idea of dividing into tiers is like the application developer can concentrate on specific tier in developing webapplicati...

Application security

Asked By: dav4uuuu | Asked On: Jul 15th, 2010

How will you make sure to develop Java/j2ee projects/applications secured from hackers?Justify how Java projects are more secured than other languages?

Answered by: Monika Gupta on: May 7th, 2012

Java projects are more secured than other languages because after compilation of java program byte code is generated. And byte code is unreadable code. Any person cant read the byte code. then the project become more secure.

Answered by: suvojyotysaha on: Apr 22nd, 2012

J2EE application can be made secure by implementing: 1. Authentication 2. Authorization 3. Encrypt the information by making the transport guarantee as Confidential. Authentication verifies if the us...

Why Java soft has declared httpservlet class as an abstract class?Is there any performance issue?

Asked By: nabi_alam | Asked On: Mar 28th, 2012

In httpservlet class there is no any abstract method although Javasoft declared this class as an abstract class.Ok,this is valid in Java.So if we want to utilize this class we will have to extends this class.But we can use to achieve this one by using httpservlet class as simple Java class also.

Answered by: n on: Apr 22nd, 2012

Security Purpose

Why pointer concept not use in Java?

Asked By: sunima dila | Asked On: Jul 29th, 2006

Answered by: Kanchan on: Apr 12th, 2012

java does not support pointer because of security purpose, as if it have pointer then till easy to find out the addressing of its application which may make it unsecure

Answered by: abhinav on: Apr 7th, 2012

java uses the concept of reference variable which is same as pointer....

Difference between Java.Sql.Date and Java.Util.Date

Asked By: murthy | Asked On: Mar 24th, 2006

Answered by: dineshxp on: Mar 19th, 2012

java.util.date is used to show date and time of the system

java.sql.date is used to show the date of retrieved data from database and also it shows entered date to database

Answered by: NarendraKumar on: Mar 6th, 2012

Explanation: public class ((java.util.Date extends java.lang.Object)) implements java.io.Serializ able,java.lang.Cloneable,java.lang.Comparable java.sql.Date extends the java.uti.Date cls obj so jav...

What is bit twiddling in Java?

Asked By: Nitin Vavdiya | Asked On: Jan 27th, 2012

Answered by: Lokesh M on: Feb 10th, 2012

Bit Twiddling was used in earlier days for efficiency. It is a technique used for bit manipulation. Java bitwise and bit shift operators such as NOT, AND, OR, XOR, LEFT-SHIFT, RIGHT-SHIFT, UNSIGNED-RI...

Available methods in synchronization ?

Asked By: sudhakar_bvr | Asked On: May 30th, 2006

Answered by: amreenkhader on: Jan 20th, 2012

In this two threads cannot use the same resource simultaneously beacuse the thread execution gets interrupted or terminated hence only a single thread can share resource at a time.

Answered by: sonia on: Jun 21st, 2006

It is a process of ensuring that if two or more threads are using  a shared resource then only one thread get access to that shared resource at a time.

Synchronization contains empty implementation, so no method is used.

What is the difference b/w Java & Javax files?

Asked By: hdhd | Asked On: May 11th, 2006

Answered by: amreenkhader on: Jan 20th, 2012

Java is the extension of C++ language and javax files are those where it stores the entire program for execution in the form of files and termed as javax files

Answered by: raam on: Jan 19th, 2012

javax is the extension for the java packages

Code
  1. javax.swing extension for java.awt

What is diffrence between Java and Java script?

Asked By: vijay | Asked On: Oct 21st, 2005

Answered by: amreenkhader on: Jan 20th, 2012

Java is the basic object oriented programmng language and Java script can be used in style sheets making and in HTML documentation

Answered by: mani.sivapuram on: Feb 23rd, 2011

java-script is also same as like java only.But java is used in server side scripting and the javascript is used in client side scripting. I will say a real time scenario here consider the normal user...

Can we declare class as protected?

Asked By: suresh | Asked On: Feb 25th, 2006

What is the scope for this class?

Star Read Best Answer

Editorial / Best Answer

Answered by: dipl. ing. Dan

Member Since Mar-2006 | Answered On : Mar 24th, 2006

Some people might get confused by the many posts. The correct answer to the question "can we declare class as protected?" is YES, BUT only as an inner class. A 'normal' class cannot be protected or private.

// 'Normal' class - only default or public allowed

public class ProtectedOrNot {

  // Inner class - public, default, protected, private allowed

  protected class InnerClass {

  }

  public static void main(String[] args) {

  }

}

Answered by: amreenkhader on: Jan 20th, 2012

The class cannot be declared as protected..

Answered by: manish on: Oct 17th, 2011

we can not declare a class as protected or private compiler will gives an error like ; xyz.java:1: modifier protected not allowed here protected class xyz{ ^ 1 error

Code
  1. protected class xyz{
  2. }
  3.  

Why is that the final variable has to be initialized as soon as it is declare?

Asked By: vishalanand_154 | Asked On: Jul 31st, 2008

Star Read Best Answer

Editorial / Best Answer

Answered by: r.praveenkumar

Member Since Oct-2007 | Answered On : Aug 1st, 2008

when a variable is declared as final we cant change its value again. we use final variable to declare a constant so when we declare a variable as final and if we were allowed to not to give its value at the time of declaration it would not make sense so people who designed java made mandatory to give the value when we declare a final variable. then only it will be sensible.
final PI=3.14;
then we cant change PI's value. think if the above statement do not contain a vl it would not make sense.

Answered by: amreenkhader on: Jan 20th, 2012

A variable can be declared but when program execution is running one can change its variable but when it reaches a final result the varable cannot be changed..hence it is declared as final variable

Answered by: r.praveenkumar on: Aug 1st, 2008

when a variable is declared as final we cant change its value again. we use final variable to declare a constant so when we declare a variable as final and if we were allowed to not to give its value ...

Explain the concept of design in a project and its life cycle

Asked By: tirupathi.reddy | Asked On: Jan 20th, 2008

Answered by: amreenkhader on: Jan 20th, 2012

Projects needs to be designed carefully which must be meaningful according to the readers and learners..It must be planned in such a way so that it can be followed easily a project should contain a meaninngful data related to topic prescribed

Answered by: Ashwinshenoy7 on: May 8th, 2011

Let me start with an example.Consider a development projectInitiation : Requirements gatheringPlanning : From the scratch to the end product based of the needs and requirements provided.Design: Once t...

What is DAO?

Asked By: urs_bluevr | Asked On: Jul 6th, 2007

Answered by: amreenkhader on: Jan 20th, 2012

DAO decides to recieve the appropriate application from java and implemeting it a runtime...during execution..

Answered by: chetan.nellekeri on: Apr 18th, 2011

DAO is Data Access Object.

This is a pattern is used in most of the project throughout the industry.
This class is the main medium between JAVA and JDBC.

What is project architecture?

Asked By: surendra.meda | Asked On: Oct 2nd, 2006

Answered by: rekha on: Aug 19th, 2011

anyone pls send me project architecture diagram. and plz differentiate project architecture and project approach briefly. Does project architecture follows project approach.
Is project architecture is same for all struts, spring etc for all. or different architectures for all. pls tell me

Answered by: Abhiany Gautam on: Mar 15th, 2007

Can anyone send me project architecture diagram. and plz differentiate project architecture and project approach briefly. Does project architecture follows project approach.

Can we declare class as priVATe?What will happen if we declare like that?

Asked By: suresh | Asked On: Feb 25th, 2006

Answered by: ch madhav on: Jul 28th, 2011

yes.But we can not declare the outer class as private..If did so,the compiler will generate the error as the modifier private is not allowed here,but we can declare the inner class as private.

Answered by: Visitor on: Aug 25th, 2006

Not true, the class can be accessed by an outer-class.

Java single inhertiance and multiple inheritance

Asked By: sivakumar | Asked On: Oct 13th, 2005

1.What is meant by inheritance,single inhertiance,multiple inheritance?2.Define abstract class & abstract method?3.How to developed and delopying a servelt,JSP program in the tomcat apache server,weblogic server?Plz send the answer for the particular abo

Answered by: srinu141 on: Sep 22nd, 2009

Java supports single inheritance like C++, but does not supports multiple inheritance because of diamond problem.

Answered by: pijush on: Dec 17th, 2008

In Java multiple inheritance means implementing the multiple interface, at the same time you can inherit only one class and implement multiple interface.

What is design by contract? Explain the assertion construct?

Asked By: prhema | Asked On: Feb 4th, 2008

Answered by: Ashwinshenoy7 on: May 8th, 2011

In every class or method, there will be a calling function and a called function.When ever a function(calling function) calls another function(called function), the called function is expected to repl...

What is .Xba file?

Asked By: vivekso | Asked On: Sep 28th, 2007

Answered by: Ashwinshenoy7 on: May 8th, 2011

Let me tell you where exactly it is used and what it does as per my knowledge.Application library used by OpenOffice.org, an open-source productivity suite; contains the functionality for the componen...

Implement very large queue

Asked By: jimmy514in | Asked On: Sep 27th, 2010

Suppose you have a very large queue, and you need to do a insert and delete on the queue. Since the queue is very large , you cannot keep the entire queue in the memory. How do you go about implementing such a condition?How do you go about inserting and deleting elements from that queue if you cannot...

Answered by: Ashwinshenoy7 on: May 8th, 2011

Problems with large Queue :1) Space.2) Inserting and deleting.3) Time to perform operations.4) Additional cost.There are few ways to implement very large queues:1)Using flat-files:A "flat file&qu...

First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Core Java Interview Questions

EJB Interview Questions

Hibernate Interview Questions

Java Interview Questions

Java Patterns Interview Questions

JDBC Interview Questions

JMS Interview Questions

JSP Interview Questions

Java OOPS Interview Questions

Ruby Interview Questions

Servlets Interview Questions

Spring Interview Questions

Struts Interview Questions

Websphere Interview Questions

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".