Java J2EE Interview Questions
Questions Answers Views Company eMail

What is garbage collection in Java, and how can it be used ?

Infosys, HCL, Accenture, Wipro, Sara, SITS, TCS,

32 58265

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 8341

Differentiate constructor and a method and how are it be used?


7 8850

What is an abstract class?

Wipro, DBS,

7 7682

How can final class be used?

Wipro, Accenture,

5 9630

By what default value is an object reference declared as an instance variable?


1 10904

Java support what type of parameter passing ?


7 12229

Explain the term serialization?


10 10048

Is there is any error if you have multiple main methods in the same class?

Wipro, Infosys,

10 11384

What is Overriding and how can it be used?

Consagous, Wipro,

7 13791

How is serialization used generally ?

3 4716

How are Swing and AWT be differentiated?


3 6017

Explain pass by reference and pass by value?

IBM, Wipro,

8 12253

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7984

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 37544

Un-Answered Questions { Java J2EE }

what happen if we set JDBC string to NULL?


how to get the critical application?


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.


Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain


What is stored procedure. How do you create stored procedure ?


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at


java program with complete 4 oops concepts implemented example


How to connect to a remote database using Applet?


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!


I am newbie in J2EE & looking for strong basic behind each concept as, Why do we use private access specifier before each variable of type property bcoz ultimately to access it outside the class we use public method as getter & setter ? If we use getter & setter to access it outside the class so better we make variable as public so that it is easily available outside of the class... Please guide me why do we use as private ????


Explain phantom read?


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..


which protocol it user to connect manage server to admin ? where it is defined ?


3.2 Consider the following class: public class Point { protected int x, y; public Point(int xx, int yy) { x = xx; y = yy; } public Point() { this(0, 0); } public int getx() { return x; } public int gety() { return y; } public String toString() { return "("+x+", "+y+")"; } } Say you wanted to define a rectangle class that stored its top left corner and its height and width as fields. 3.2.1 Why would it be wrong to make Rectangle inherit from Point (where in fact it would inherit the x and y coordinates for its top left corner and you could just add the height and width as additional fields)? (1) 8 Now consider the following skeleton of the Rectangle class: public class Rectangle { private Point topLeft; private int height, width; public Rectangle(Point tl, int h, int w) { topLeft = tl; height = h; width = w; } public Rectangle() { this(new Point(), 0, 0); } // methods come here } 3.2.2 Explain the no-argument constructor of the Rectangle class given above. 3.2.3 Write methods for the Rectangle class to do the following: • a toString() method that returns a string of the format "top left = (x, y); height = h; width = w " where x, y, h and w are the appropriate integer values. • an above() method that tests whether one rectangle is completely above another (i.e. all y values of the one rectangle are greater than all y values of the other). For example, with the following declarations Rectangle r1 = new Rectangle(); Rectangle r2 = new Rectangle(new Point(2,2), 1, 4); the expression r2.above(r1) should give true, and r2.above (r2) should give false. (You can assume that the height of a rectangle is never negative.) (2) (5)


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to