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 58106

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 8293

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

Wipro,

7 8788




What is an abstract class?

Wipro, DBS,

7 7621

How can final class be used?

Wipro, Accenture,

5 9559

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

Wipro,

1 10827

Java support what type of parameter passing ?

Wipro,

7 12162

Explain the term serialization?

Wipro,

10 9995

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

Wipro, Infosys,

10 11328

What is Overriding and how can it be used?

Consagous, Wipro,

7 13741

How is serialization used generally ?

3 4674

How are Swing and AWT be differentiated?

Wipro,

3 5975

Explain pass by reference and pass by value?

IBM, Wipro,

8 12184

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7925

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 37314







Un-Answered Questions { Java Related }

How entity beans support container managed persistence?

1369


What happens to the Exception object after handling an exception?

1183


What is the difference between Java1.4 and Java1.5

1129


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

1598


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

892






How to deploy Jar, War files in J2EE?

1473


who can i handle multiple client in RMI

801


How to migrate the weblogic domains Existing physical box to New box ? Assume:I have 2 Domains and 5 ms servers and i have deploy the application in managed servers in cluster Envirolment how to migrated? any budy give me steps ?

805


Explain all java features with real time examples

603


If goto and const is reserve words than why it is not work in java?

904


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

922


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!

1188


What are the steps to send and receive JMS message ?

473


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

1381


whats is mean by tiles in struts

959