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 61639

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 9403

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

Wipro,

7 10034

What is an abstract class?

Wipro, DBS,

7 8870

How can final class be used?

Wipro, Accenture,

5 10773

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

Wipro,

1 11725

Java support what type of parameter passing ?

Wipro,

7 13309

Explain the term serialization?

Wipro,

10 11241

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

Wipro, Infosys,

10 12800

What is Overriding and how can it be used?

Consagous, Wipro,

7 14940

How is serialization used generally ?

3 5489

How are Swing and AWT be differentiated?

Wipro,

3 6603

Explain pass by reference and pass by value?

IBM, Wipro,

8 13463

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 8909

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 40990







Un-Answered Questions { Java Related }

How do you reverse sort in java?

45


How do you access command-line arguments within the code?

100


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

82


What are different types of arrays?

55


What is the inter-servlet communication?

112






how to create daemon thread in java?

110


Difference between a class and an object?

79


What are some characteristics of interference class?

73


What is inheritance mapping in hibernate?

1


What is the difference between a window and a frame in java programming?

83


We are getting a 'class not found' and developers like to know, if that class is being loaded or not. How can I assist them troubleshoot the issue?

83


Explain hashset and its features?

86


What is difference between server and servlet?

73


What is dao in java?

38


What is the argument in java?

49