Java Related 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 56648

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 7783

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


7 8306

What is an abstract class?


7 7076

How can final class be used?

Wipro, Accenture,

5 8978

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


1 10381

Java support what type of parameter passing ?


7 11608

Explain the term serialization?


10 9433

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

Wipro, Infosys,

10 10810

What is Overriding and how can it be used?

Consagous, Wipro,

7 13267

How is serialization used generally ?

3 4352

How are Swing and AWT be differentiated?


3 5672

Explain pass by reference and pass by value?

IBM, Wipro,

8 11641

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7480

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 35847

Un-Answered Questions { Java Related }

Which instutute is offering course for rhino jain slee


What is the content reside in Use case Document?


to update a batch in a table in jdbc which method of statement object is used


in EJB diclare the static methods are not?


how to get the last 10 elements using logic:iterate in struts with hiernate from database.


Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls


Do we need to override service() method


Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring


What are JTA/JTS and how they used by client?


why an outer class cannot be declared as private?


Must I place all my class files in the WEB-INF folder and all JSP's outside?


What is scalable, portability in the view of J2EE?


What are restrictions on triggers?


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (