Java Questions Which Are Asked In Interview

      No Comments on Java Questions Which Are Asked In Interview
Here are some of the Java questions which are often asked to new joiners in our project interview. You will get a basic idea of Java project interviews in TCS. I’ll publish the answers in future, may be as a separate blog post.
  1. What is the difference between Method Overloading and Method Overriding?
  2. What is the difference between Runtime Exception and Compile Time Exception?
  3. What is a checked exception? What is an un-cheked exception?
  4. Do Java support Multiple Inheritance? If yes, how?
  5. What is a Marker Interface? Give an example.
  6. What is the difference between JRE, JDK and JVM?
  7. Explain the visibility of 4 types of access modifiers – Public, Protected, Default, Private?
  8. Can a class constructor be private? If yes, why do we need such constructors?
  9. What is a wrapper class?
  10. What is an immutable object?
  11. Can we declare a variable inside an interface? If yes, then what should be the variable’s modifiers?
  12. What is an Abstract Class?
  13. What is coupling and cohesion?
  14. What is type-casting?
  15. What is the default value of a ‘char’ variable?
  16. What is the difference between ‘Bitwise AND’ and ‘Logical AND’ operator?
  17. How do you iterate through a HashMap?
  18. What are the advantages of using ArrayList<String> over String Array (String[]) ?
  19. What is Generics?
  20. What is Reflection?
  21. What is Auto-Boxing?
  22. How are Javadoc comments different from normal comments?
  23. What is a Object Factory Method?
  24. What is Var Args?
  25. Is it possible to write a try block without catch?
I hope you like these questions. Comments are welcome with any query or doubt.

[Update: I have started writing the answers as separate blogs. The answered blog posts are hyperlinked from the questions.]

Please follow and like us:
Pin Share

 
 

Leave a Reply

Your email address will not be published. Required fields are marked *