Java Related Interview Questions
Questions Answers Views Company eMail

What are legal modifiers that we can use to declare an inner class?

Infosys,

1 2593

What is difference between “==” and equals()?

IBM,

1 2401

Why do we need to override equals() and hascode() method of object class?

Cognizant,

1 2567

How to override equals() and hashCode() method in java?

Wipro,

1 2428

Are the equals() and hashCode() protected methods of object class?

Avaya,

1 2807

What are the uses of final, finally and finalize in java?

Agiline, FINO PayTech, HCL,

2 2966

Describe OOP in java?

Syntel,

2 3308

What is difference between overloading and overriding?

Accenture,

2 3971

Why do we need main method to execute a java program?

Virtusa,

1 3173

How do we make a class serialize?

Syntel,

3 3381

What is serialVersionUID and what is its need?

KPIT,

1 2889

What is deserialization and how do we do deserialization?

Synechron,

3 3616

What is difference between compatible and incompatible changes in serialization?

Synechron,

1 3468

What is Difference between Serializable and Externalizable in Java serialization?

Cognizant, IBM,

1 3351

What is an object in Java and what are its benefits?

IBM,

4 3923


Un-Answered Questions { Java Related }

Explain about oops concepts.

623


Why do we need spring batch?

160


What best practices should you follow while writing multithreaded code in java?

532


Is it possible to compare various strings with the help of == operator? What are the risks involved?

605


What is ejbdoclet?

517






Do you know how are multi-byte characters used with weblogic jdriver?

562


Mention and explain the types of advice in spring?

142


How do you declare a variable?

615


What is the difference between hibernate and spring?

144


When we should use serialization?

555


Can I overload to string method

960


What are the functions of the servlet container?

1021


what is the difference between websphere and weblogic?

477


When is finally block not called?

576


What does action do in struts?

527