Recently asked Java Interview Questions by Infosys

  1. Write a actual singleton java class?
  2. What is Difference between interface and abstract class ?In what cases you will use Abstract Class and Interfaces?
  3. Difference between sinchronized block and synchronized method ?
  4. Explain OOPs concepts in java?
  5. What is stack and heap memory in java?
  6. Why native methods are used ?
  7. What is runtime exceptions? Give some examples?
  8. What is the difference between this() and super()?
  9. What is the difference between sleep() and wait() methods?
  10. What is the difference between overloading and overriding?
  11. Write a program to print the given array in reverse order {2,5,3,1,4} ?
  12. What is the difference between Thread class and Runnable interface in Java?
  13. Difference between forward() and sendRedirect() ?
  14. What is Difference between iterator and list iterator?
  15. Can u write final method in abstract class ?
  16. How to create the userdefined immutable class ?

Search:

Recent Posts