[ Java ] Frequently asked simple Java Questions List: Set - 1

♠ Posted by GeekyFry in ,,, at 7:12 AM

Frequently asked simple Java Questions List

  1. Explain OOPs concepts in java?
  2. Explain various access modifiers in java?
  3. How to sort objects in java?
  4. Difference between comparable and comparator interface?
  5. How will you make arraylist as threadsafe?
  6. Explain various uses of generics?
  7. Difference between ArrayList and LinkedList?
  8. Which is faster amongst ArrayList and LinkedList in terms of iteration?
  9. What is immutable in java?
  10. How is String immutable?
  11. Difference between StringBuilder and StringBuffer?
  12. What is Serialization?
  13. If class A is serialised but the contained object let say B in class A is not serialized,What will happen to
  14. Object B at the time of deserialization?
  15. If a superclass is serialised is serialised , but the baseclass is not serialised, what happens to the base object at the time of deserialization?
  16. What is the use of transient in java?
  17. What is cloning in java?What are the different types of cloning?
  18. What are the various ways to achieve deep cloning?
  19. Explain exception hierarchy?
  20. What is the difference between error and exception?
  21. What is the difference between no class def found error and ClassNotFoundExeption?
  22. What is the use keyword in java?
  23. What is garbage collection?
  24. What are the various ways to achieve make object eligible for garbage collection?
  25. What is finalize in java?
  26. What is better extends Thread or implement Runnable Interface and why?
  27. What is the difference between sleep and yield?
  28. What happens when two different threads try to access Static synchronized and non static syncronsized methods at the same time?
  29. What is deadlock?
  30. How will you create a immutable class?
  31. What are the advantages of having a immutability?
  32. Are all wrapper classes in java immutable?
  33. Are all wrapper classes in java immutable?

0 comments:

Post a Comment