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?

Wipro,

7 8306




What is an abstract class?

Wipro,

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?

Wipro,

1 10381

Java support what type of parameter passing ?

Wipro,

7 11608

Explain the term serialization?

Wipro,

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?

Wipro,

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

1188


What is the content reside in Use case Document?

975


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

966


in EJB diclare the static methods are not?

2049


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

3231






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

794


Do we need to override service() method

315


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

947


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

1019


why an outer class cannot be declared as private?

2579


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

334


What is scalable, portability in the view of J2EE?

1090


What are restrictions on triggers?

1003


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?

1171


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. (

703