Pages

Advance Java Interview Questions



Advance Java Interview Questions

Hello; I am here to describe some important Advance Java Interview Questions which is asked few days before in some top MNC Company.

Advance Java Interview Questions


  1. Why use Servlet ?
  2. What is JSP ?
  3. What is Container in Servlet ?
  4. What are life cycle of Servlet ?
  5. What are life cycle of JSP ?
  6. What is JSP Tag ?
  7. What is the purpose of default constructor?
  8. Can a constructor be made final?
  9. What is static block?
  10. Define composition?
  11. What is function overloading?
  12. What is function overriding?
  13. Difference between Overloading and Overriding?
  14. What is final class?
  15. What is NullPointerException?
  16. What are the ways in which a thread can enter the waiting state?
  17. How does multi-threading take place on a computer with a single CPU?
  18. What invokes a thread's run() method?
  19. Does it matter in what order catch statements for FileNotFoundException and IOException are written?
  20. What is the difference between yielding and sleeping?
  21. Why Vector class is used?
  22. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?
  23. What is the difference between a Window and a Frame?
  24. Which package has light weight components?
  25. What is the difference between the paint() and repaint() methods?
  26. What is the purpose of File class?
  27. What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
  28. Which class should you use to obtain design information about an object?
  29. What is the difference between static and non-static variables?
  30. What is Serialization and deserialization?
  31. What are use cases?
  32. What are uses of wrapper class ?
  33. Explain the use of sublass in a Java program?
  34. How to add menushortcut to menu item?
  35. Why deletion in LinkedList is fast than ArrayList?
  36. How do you decide when to use ArrayList and LinkedList?
  37. What is a Values Collection View ?
  38. What is dot operator?
  39. Why java have no pointer concept ?
  40. Where and how can you use a private constructor?
  41. What is type casting?
  42. Describe life cycle of thread?
  43. What is the difference between the >> and >>> operators?
  44. Which method of the Component class is used to set the position and size of a component?
  45. What is the range of the short type?
  46. What is the range of long data type in java ?
  47. What is the range of integer data type in java ?
  48. What is the immediate superclass of Menu?
  49. Does Java allow Default Arguments?
  50. Which number is denoted by leading zero in java?
  51. Which number is denoted by leading 0x or 0X in java?
  52. Break statement can be used as labels in Java?
  53. Where import statement is used in a Java program?
  54. Explain suspend() method under Thread class>
  55. Explain isAlive() method under Thread class?
  56. What is currentThread()?
  57. What is demon theread ?
  58. Explain life cycle of thread ?
  59. Difference between sleep() and suspend() ?
  60. Main uses of thread in java ?


No comments:

Post a Comment

 

Most Reading