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 56921

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 7894

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

Wipro,

7 8394




What is an abstract class?

Wipro,

7 7173

How can final class be used?

Wipro, Accenture,

5 9079

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

Wipro,

1 10480

Java support what type of parameter passing ?

Wipro,

7 11702

Explain the term serialization?

Wipro,

10 9537

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

Wipro, Infosys,

10 10908

What is Overriding and how can it be used?

Consagous, Wipro,

7 13351

How is serialization used generally ?

3 4410

How are Swing and AWT be differentiated?

Wipro,

3 5723

Explain pass by reference and pass by value?

IBM, Wipro,

8 11725

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7539

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 36107







Un-Answered Questions { Java J2EE }

What are the differences between Java 1.0 and Java 2.0?

966


what is mean by OLE ? Please answer me. Advance thanks.

1486


can u explain about design patterns like singleton,builder,factory

1197


how to connect from struts to database through hibernet and where u can modify the class

1431


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

340






public class ActionSearchBean extends GenericSearchBean { @Override public String search() { data.setRowCount(null); if(data.getRowCount()==0){ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } return "searchAction"; } @Override public String clear() { data.setRowCount(null); if (data.getRowCount() > 0){ data.getNoRecordFound().setRendered(false); data.getDataScroller().setRendered(true); }else{ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } data.setModel(new ActionDTO()); data.setRowCount(null); return "searchAction"; } } what is the purpose of @Override ...what will do @Override here ?

1256


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

6190


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

808


in EJB diclare the static methods are not?

2072


What does those terms actually mean included in the j.d.k i.6?

915


How to Allowe messages to expire ?

364


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

1361


What is JMS API Architecture?

353


What collections you have worked on? Internal working of Hashmap?

1098


who can i handle multiple client in RMI

743