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?

Wipro,

6 5457

What is an abstract class?

Wipro,

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?

Wipro,

1 7555

Java support what type of parameter passing ?

Wipro,

7 8744

Explain the term serialization?

Wipro,

10 6846

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

Wipro,

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?

Wipro,

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.

842


What is JTS?

715


How to provide security in java

760


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

861


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

613


How to implement RMI in Java?

1391


how to deploy the application

740


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?

710


how to handle exceptions in ejb?

872


what is collatration?

1369


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

1161


How messaging services are done, before release of JMS?

565


How to Set message priority levels?

134


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!

827


How to connect to a remote database using Applet?

1050