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,

32 49503

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

5 5308

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


6 5757

What is an abstract class?


6 4729

How can final class be used?

Wipro, Accenture,

4 6648

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


1 7845

Java support what type of parameter passing ?


7 9084

Explain the term serialization?


10 7205

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


10 8374

What is Overriding and how can it be used?

Consagous, Wipro,

7 11392

How is serialization used generally ?

3 2855

How are Swing and AWT be differentiated?


3 4783

Explain pass by reference and pass by value?

IBM, Wipro,

8 9233

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 5677

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

20 25895

Un-Answered Questions { Java J2EE }

can any body body expalin best definitions & best real time exaples for opps concepts.


what are the disadvantages of indexes in oracle?


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.


How to Sort Strings which are given in List and display in ascending order without using java api.


what is mena by object block any what is the use of that


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!


Explain the steps in details to load the server object dynamically?


How messaging services are done, before release of JMS?


what is mean by hasing and maping in java platform and advantage?


please tell me the name and url path for type-4 driver ?


what are memory considerations of jsp compares to other web components?


what is a non-repeatable read?


what is meant by JRMP?


How do you sing an Applet ?