Interview Questions

Interview Questions on Collections in Java

When to use a Map in java? Lists and Maps are different data structures. Maps are used for when you want to associate a key with a value and Lists are an ordered collection. How does HashMap work? http://howtodoinjava.com/2012/10/09/how-hashmap-works-in-java/ Difference between Arraylist and Vector. http://www.jcombat.com/core-java/collections-in-java Difference between Arraylist and LinkedList....

Interview Questions on Exception Handling in Java

How have you handled exceptions in the projects that you have worked on? You can check the below link to learn about the basic exception handling in Java. http://www.jcombat.com/core-java/exception-handling-in-java Have you used custom exceptions? http://www.jcombat.com/core-java/user-defined-or-custom-exceptions Why do we need custom exceptions? http://www.jcombat.com/core-java/user-defined-or-custom-exceptions How many types of exceptions are there? http://www.jcombat.com/core-java/exception-handling-in-java Could...

Interview Questions on Polymorphism in Java

What is Polymorphism in Java? Polymorphism is derived from two greek words, ‘Poly’ which means ‘many’ and ‘morph’ which means ‘form’. Therefore, we can say that Polymorphism is the ability of an object to exist in multiple forms. How can Polymorphism be achieved in Java? Through method overloading and method overriding. Can...
Receive our updates to your inbox

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.