Tuesday, June 06, 2006

Interviewer's Questions: Java

  1. What is user defined exception?
  2. What do you know about the garbage collector?
  3. What is the difference between java and c++?
  4. In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
  5. What is the difference between process and threads?
  6. Have you ever used HashTable and Directory?
  7. What are statements in Java?
  8. What is a JAR file?
  9. What is JNI?
  10. What is the base class for all swing components?
  11. What is JFC?
  12. What is the difference between AWT and Swing?
  13. Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
  14. How does thread synchronization occur in a monitor?
  15. Is there any tag in htm to upload and download files?
  16. Why do you canvas?
  17. How can you know about drivers and database information ?
  18. What is serialization?
  19. Can you load the server object dynamically? If so what are the 3 major steps involved in it?
  20. What is the layout for toolbar?
  21. What is the difference between Grid and Gridbaglayout?
  22. How will you add panel to a frame?
  23. Where are the card layouts used?
  24. What is the corresponding layout for card in swing?
  25. What is light weight component?
  26. Can you run the product development on all operating systems?
  27. What are the benefits if Swing over AWT?
  28. How can two threads be made to communicate with each other?
  29. What are the files generated after using IDL to java compiler?
  30. What is the protocol used by server and client?
  31. What is the functionability stubs and skeletons?
  32. What is the mapping mechanism used by java to identify IDL language?
  33. What is serializable interface?
  34. What is the use of interface?
  35. Why is java not fully objective oriented?
  36. Why does java not support multiple inheritance?
  37. What is the root class for all java classes?
  38. What is polymorphism?
  39. Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
  40. What are virtual functions?
  41. Write down how will you create a Binary tree?
  42. What are the traverses in binary tree?
  43. Write a program for recursive traverse?
  44. What are session variable in servlets?
  45. What is client server computing?
  46. What is constructor and virtual function? Can we call a virtual function in a constructor?
  47. Why do we use oops concepts? What is its advantage?
  48. What is middleware? What is the functionality of web server?
  49. Why is java not 100% pure oops?
  50. When will you use an interface and abstract class?
  51. What is the exact difference in between Unicast and Multicast object? Where will it be used?
  52. What is the main functionality of the remote reference layer?
  53. How do you download stubs from Remote place?
  54. I want to store more than 10 objects in a remote server? Which methodology will follow?
    What is the main functionality of Prepared Statement?
  55. What is meant by Static query and Dynamic query?
  56. What are Normalization Rules? Define Normalization?
  57. What is meant by Servelet? What are the parameters of service method?
  58. What is meant by Session? Explain something about HTTP Session Class?
  59. In a container there are 5 components. I want to display all the component names, how will you do that?
  60. Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
  61. Tell some latest versions in JAVA related areas?
  62. What is meant by class loader? How many types are there? When will we use them?
  63. What is meant by flickering?
  64. What is meant by distributed application? Why are we using that in our application?
  65. What is the functionality of the stub?
  66. Explain about version control?
  67. Explain 2-tier and 3-tier architecture?
  68. What is the role of Web Server?
  69. How can we do validation of the fields in a project?
  70. What is meant by cookies? Explain the main features?
  71. Why java is considered as platform independent?
  72. What are the advantages of java over C++?
  73. How java can be connected to a database?
  74. What is thread?
  75. What is difference between Process and Thread?
  76. Does java support multiple inheritance? if not, what is the solution?
  77. What are abstract classes?
  78. What is an interface?
  79. What is the difference abstract class and interface?
  80. What are adapter classes?
  81. what is meant wrapper classes?
  82. What are JVM.JRE, J2EE, JNI?
  83. What are swing components?
  84. What do you mean by light weight and heavy weight components?
  85. What is meant by function overloading and function overriding?
  86. Does java support function overloading, pointers, structures, unions or linked lists?
    What do you mean by multithreading?
  87. What are byte codes?
  88. What are streams?

Answer to these questions:

Link1

Link2

No comments: