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 48438

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

4 4970

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


6 5457

What is an abstract class?


6 4424

How can final class be used?

Wipro, Accenture,

3 6334

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


1 7555

Java support what type of parameter passing ?


7 8744

Explain the term serialization?


10 6846

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


10 8036

What is Overriding and how can it be used?

Consagous, Wipro,

7 11097

How is serialization used generally ?

3 2736

How are Swing and AWT be differentiated?


3 4645

Explain pass by reference and pass by value?

IBM, Wipro,

7 8953

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 5351

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

19 24474

Un-Answered Questions { Java J2EE }

can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.


What is JTS?


How to provide security in java


my interviewer asked me what technical specification you used how to answer that question


what is the messsage u r going to get from an objectoriented programing?


How to implement RMI in Java?


how to deploy the application


when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?


how to handle exceptions in ejb?


what is collatration?


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


How messaging services are done, before release of JMS?


How to Set message priority levels?


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!


How to connect to a remote database using Applet?