Saturday, September 10, 2011

250+ Frequently Asked Questions Of Java Programming Interview


  1. Can a main() method of class be invoked in another class?
  2. What is the difference between java command line arguments and C command line arguments?
  3. What is the difference between == & .equals
  4. What is the difference between abstract class & Interface.
  5. What is singleton class & it's implementation.
  6. Use of static, final variable
  7. Examples of final class
  8. Difference between Event propagation & Event delegation
  9. Difference between Unicast & Multicast model
  10. What is a java bean
  11. What is synchronized keyword used for.
  12. What are the restrictions of an applet & how to make the
  13. applet access the local machines resources.
  14. What is reflect package used for & the methods of it.
  15. What is serialization used for
  16. Can methods be overloaded based on the return types ?
  17. Why do we need a finalze() method when Garbage Collection is there ?
  18. Difference between AWT and Swing compenents ?
  19. Is there any heavy weight component in Swings ?
  20. Can the Swing application if you upload in net, be compatible with your browser?
  21. What should you do get your browser compatible with swing components?
  22. What are the methods in Applet ?
  23. When is init(),start() called ?
  24. When you navigate from one applet to another what are the methods called?
  25. What is the difference between Trusted and Untrusted Applet ?
  26. What is Exception ?
  27. What are the ways you can handle exception ?
  28. When is try,catch block used ?
  29. What is finally method in Exceptions ?
  30. What are the types of access modifiers ?
  31. What is protected and friendly ?
  32. What are the other modifiers ?
  33. Is synchronised modifier ?
  34. What is meant by polymorphism ?
  35. What is inheritance ?
  36. What is method Overloading ? What is this in OOPS ?
  37. What is method Overriding ? What is it in OOPS ?
  38. Does java support multi dimensional arrays ?
  39. Is multiple inheritance used in Java ?
  40. How do you send a message to the browser in JavaScript ?
  41. Does javascript support multidimensional arrays ?
  42. Is there any tool in java that can create reports ?
  43. What is meant by Java ?
  44. What is meant by a class ?
  45. What is meant by a method ?
  46. What are the OOPS concepts in Java ?
  47. What is meant by encapsulation ? Explain with an example
  48. What is meant by inheritance ? Explain with an example
  49. What is meant by polymorphism ? Explain with an example
  50. Is multiple inheritance allowed in Java ? Why ?
  51. What is meant by Java interpreter ?
  52. What is meant by JVM ?
  53. What is a compilation unit ?
  54. What is meant by identifiers ?
  55. What are the different types of modifiers ?
  56. What are the access modifiers in Java ?
  57. What are the primitive data types in Java ?
  58. What is meant by a wrapper class ?
  59. What is meant by static variable and static method ?
  60. What is meant by Garbage collection ?
  61. What is meant by abstract class
  62. What is meant by final class, methods and variables ?
  63. What is meant by interface ?
  64. What is meant by a resource leak ?
  65. What is the difference between interface and abstract class ?
  66. What is the difference between public private, protected and static ?
  67. What is meant by method overloading ?
  68. What is meant by method overriding ?
  69. What is singleton class ?
  70. What is the difference between an array and a vector ?
  71. What is meant by constructor ?
  72. What is meant by casting ?
  73. What is the difference between final, finally and finalize ?
  74. What is meant by packages ?
  75. What are all the packages ?
  76. Name 2 calsses you have used ?
  77. Name 2 classes that can store arbitrary number of objects ?
  78. What is the difference between java.applet.* and java.applet.Applet ?
  79. What is a default package ?
  80. What is meant by a super class and how can you call a super class ?
  81. What is anonymous class ?
  82. Name interfaces without a method ?
  83. What is the use of an interface ?
  84. What is a serializable interface ?
  85. How to prevent field from serialization ?
  86. What is meant by exception ?
  87. How can you avoid the runtime exception ?
  88. What is the difference between throw and throws ?
  89. What is the use of finally ?
  90. Can multiple catch statements be used in exceptions ?
  91. Is it possible to write a try within a try statement ?
  92. What is the method to find if the object exited or not ?
  93. What is meant by a Thread ?
  94. What is meant by multi-threading ?
  95. What is the 2 way of creating a thread ? Which is the best way and why?
  96. What is the method to find if a thread is active or not ?
  97. What are the thread-to-thread communcation ?
  98. What is the difference between sleep and suspend ?
  99. Can thread become a member of another thread ?
  100. What is meant by deadlock ?
  101. How can you avoid a deadlock ?
  102. What are the three typs of priority ?
  103. What is the use of synchronizations ?
  104. Garbage collector thread belongs to which priority ?
  105. What is meant by time-slicing ?
  106. What is the use of 'this' ?
  107. How can you find the length and capacity of a string buffer ?
  108. How to compare two strings ?
  109. What are the interfaces defined by Java.lang ?
  110. What is the purpose of run-time class and system class
  111. What is meant by Stream and Types ?
  112. What is the method used to clear the buffer ?
  113. What is meant by Stream Tokenizer ?
  114. What is serialization and de-serialisation ?
  115. What is meant by Applet ?
  116. How to find the host from which the Applet has originated ?
  117. What is the life cycle of an Applet ?
  118. How do you load an HTML page from an Applet ?
  119. What is meant by Applet Stub Interface ?
  120. What is meant by getCodeBase and getDocumentBase method ?
  121. How can you call an applet from a HTML file
  122. What is meant by Applet Flickering ?
  123. What is the use of parameter tag ?
  124. What is audio clip Interface and what are all the methods in it ?
  125. What is the difference between getAppletInfo and getParameterInfo ?
  126. How to communicate between applet and an applet ?
  127. What is meant by event handling ?
  128. What are all the listeners in java and explain ?
  129. What is meant by an adapter class ?
  130. What are the types of mouse event listeners ?
  131. What are the types of methods in mouse listeners ?
  132. What is the difference between panel and frame ?
  133. What is the default layout of the panel and frame ?
  134. What is meant by controls and types ?
  135. What is the difference between a scroll bar and a scroll panel.
  136. What is the difference between list and choice ?
  137. How to place a component on Windows ?
  138. What are the different types of Layouts ?
  139. What is meant by CardLayout ?
  140. What is the difference between GridLayout and GridBagLayout
  141. What is the difference between menuitem and checkboxmenu item.
  142. What is meant by vector class, dictionary class , hash table class,and property class ?
  143. Which class has no duplicate elements ?
  144. What is resource bundle ?
  145. What is an enumeration class ?
  146. What is meant by Swing ?
  147. What is the difference between AWT and Swing ?
  148. What is the difference between an applet and a Japplet
  149. What are all the components used in Swing ?
  150. What is meant by tab pans ?
  151. What is the use of JTree ?
  152. How can you add and remove nodes in Jtree.
  153. What is the method to expand and collapse nodes in a Jtree
  154. What is the use of JTable ?
  155. What is meant by JFC ?
  156. What is the class in Swing to change the appearance of the Frame in Runtime.
  157. How to reduce flicking in animation ?
  158. What is meant by Javabeans ?
  159. What is JAR file ?
  160. What is meant by manifest files ?
  161. What is Introspection ?
  162. What are the steps involved to create a bean ?
  163. Say any two properties in Beans ?
  164. What is persistence ?
  165. What is the use of beaninfo ?
  166. What are the interfaces you used in Beans ?
  167. What are the classes you used in Beans ?
  168. What is the diffrence between an Abstract class and Interface
  169. What is user defined exception ?
  170. What do you know about the garbate collector ?
  171. What is the difference between C++ & Java ?
  172. How do you communicate in between Applets & Servlets ?
  173. What is the use of Servlets ?
  174. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
  175. What is the difference between Process and Threads ?
  176. How will you initialize an Applet ?
  177. What is the order of method invocation in an Applet ?
  178. When is update method called ?
  179. How will you communicate between two Applets ?
  180. Have you ever used HashTable and Dictionary ?
  181. What are statements in JAVA ?
  182. What is JAR file ?
  183. What is JNI ?
  184. What is the base class for all swing components ?
  185. What is JFC ?
  186. What is Difference between AWT and Swing ?
  187. Considering notepad/IE or any other thing as process, What will Happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
  188. How does thread synchronization occurs inside a monitor ?
  189. How will you call an Applet using a Java Script function ?
  190. Is there any tag in HTML to upload and download files ?
  191. Why do you Canvas ?
  192. How can you push data from an Applet to Servlet ?
  193. What are the benefits of Swing over AWT ?
  194. Where the CardLayout is used ?
  195. What is the Layout for ToolBar ?
  196. What is the difference between Grid and GridbagLayout ?
  197. How will you add panel to a Frame ?
  198. What is the corresponding Layout for Card in Swing ?
  199. What is light weight component ?
  200. What is bean ? Where it can be used ?
  201. What is difference in between Java Class and Bean ?
  202. What is the mapping mechanism used by Java to identify IDL language ?
  203. Diff between Application and Applet ?
  204. What is serializable Interface ?
  205. What is the difference between CGI and Servlet ?
  206. What is the use of Interface ?
  207. Why Java is not fully objective oriented ?
  208. Why does not support multiple Inheritance ?
  209. What it the root class for all Java classes ?
  210. What is polymorphism ?
  211. Suppose If we have 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 ?
  212. What is Constructor and Virtual function? Can we call Virtual Funciton in a constructor ?
  213. Why we use OOPS concepts? What is its advantage ?
  214. What is the difference in between C++ and Java ? can u explain in detail?
  215. What is the exact difference in between Unicast and
  216. Multicast object ? Where we will use ?
  217. How do you sing an Applet ?
  218. In a Container there are 5 components. I want to display the
  219. all the components names, how will you do that one ?
  220. Why there are some null interface in java ? What does it mean ?
  221. Give me some null interfaces in JAVA ?
  222. Tell me the latest versions in JAVA related areas ?
  223. What is meant by class loader ? How many types are there?
  224. When will we use them ?
  225. What is meant by flickering ?
  226. What is meant by cookies ? Explain ?
  227. Problem faced in your earlier project How OOPS concept is achieved in Java Features for using Java?
  228. How does Java 2.0 differ from Java 1.0 ?
  229. Public static void main - Explain
  230. What are command line arguments
  231. Explain about the three-tier model
  232. Difference between String & StringBuffer
  233. Wrapper class. Is String a Wrapper Class
  234. What are the restriction for static method Purpose of the file class
  235. What is the package concept and use of package
  236. How can a dead thread be started
  237. Difference between Applet & Application
  238. Life cycle of the Applet
  239. Can Applet have constructors
  240. Differeence between canvas class & graphics class
  241. Explain about Superclass & subclass
  242. What is AppletStub
  243. Explain Stream Tokenizer
  244. What is the difference between two types of threads
  245. Checked & Unchecked exception
  246. Use of throws exception
  247. What is finally in exception handling Vector class
  248. Can applet in different page communicate with each other
  249. Why Java is not 100 % pure OOPS ? ( EcomServer )
  250. When we will use an Interface and Abstract class ?
  251. How to communicate 2 threads each other ?

No comments:

Post a Comment