Java J2EE Interview Questions
Questions Answers Views Company eMail

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

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

32 97593

Differentiate Vector and ArrayList?

Max Telecom, Wipro,

6 29094

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

Wipro,

7 29745

What is an abstract class?

DBS, Wipro,

8 28176

How can final class be used?

Accenture, Wipro,

5 27808

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

Wipro,

1 26764

Java support what type of parameter passing ?

Wipro,

7 20651

Explain the term serialization?

Wipro,

10 31988

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

Infosys, Wipro,

10 34166

What is Overriding and how can it be used?

Consagous, Wipro,

7 33719

How is serialization used generally ?

3 21596

How are Swing and AWT be differentiated?

Wipro,

3 22667

Explain pass by reference and pass by value?

IBM, Wipro,

8 32989

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 25850

What happens when a main method is declared as private?

DELL, Infosys, L&T, Sun Microsystems,

22 75726


Un-Answered Questions { Java J2EE }

What are the differences between heap and stack memory in java?

1134


What is lazy class?

484


Can we return resultset in java?

990


What is the difference between filters and interceptors ?

1308


How is declarative handling of exceptions done in struts ?

1002






Explain public static void main(string args[]) in java.

1069


What do you know about validation plugin ?

1026


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2661


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

2419


What is java string pool?

1079


What is parsing in java?

1036


Differentiate between static and non-static methods in java.

1123


Write a program to find the whether a number is an Armstrong number or not?

1095


Write a program to print count of empty strings in java 8?

1084


What is the difference between equals() and == in java?

1035