Skip to main content

Master List of Java J2ee Interview Questions

if you prepare the answers for the questions below, it's not a tough job to get job of Software Engineer in Java J2ee Technologies. Then why are delaying let tune your mind to get answers. Search this blog you will get answers here itself. Wish You Good Luck for interviews...

1. What is Entity Bean and Session Bean ?
2. What are the methods of Entity Bean?
3. How does Stateful Session bean store its state ?
4. Why does Stateless Session bean not store its stateeven though it has ejbActivate and ejbPassivate ?
5. What are the services provided by the container ?
6. Types of transaction ?
7. What is bean managed transaction ?
8. Why does EJB needs two interface( Home and Remote Interface) ?
9. What are transaction attributes ?

10. What is the difference between Container managed persistent bean and Bean managed persistent entity bean ?
11. What is J2EE ?
12. What is JTS ?
13. How many entity beans used and how many tables canu use in EJB
14. project
15. What is scalable,portability in J2EE?
16. What is Connection pooling?Is it advantageous?
17. Method and class used for Connection pooling ?
18. How to deploy in J2EE(i.e Jar,War file) ?
19. How is entity bean created using Container managed entity bean ?
20. Sotware architechture of EJB ?
21. In Entity bean will the create method in EJB home and ejbCreate
22. In Entity bean have the same parameters ?
23. What methods do u use in Servlet – Applet communication ?
24. What are the types of Servlet ?
25. Difference between HttpServlet and GenericServlets ?
26. Difference between doGet and doPost ?
27. What are the methods in HttpServlet?
28. What are the types of SessionTracking?
29. What is Cookie ? Why is Cookie used ?
30. If my browser does not support Cookie,and my server sends a cookie instance What will happen ?
31. Why do u use Session Tracking in HttpServlet ?
32. Can u use __javaScript in Servlets ?
33. What is the capacity the doGet can send to the server ?
34. What are the type of protocols used in HttpServlet?
35. Difference between TCP/IP and IP protocol ?
36. Why do you use UniCastRemoteObject in RMI ?
37. How many interfaces are used in RMI?
38. Can Rmi registry be written in the code, withouthaving to write
39. it in the command prompt and if yes where?
40. Why is Socket used ?
41. What are the types of JDBC drivers ?
42. Explain the third driver(Native protocol driver) ?
43. Which among the four driver is pure Java driver ?
44. What are the Isolation level in JDBC transaction ?
45. How do you connect with the database ?
46. How do you connect without the Class.forName (" ")?
47. What does Class.forName return ?
48. What are the types of statement ?
49. Why is preparedStatement,CallableStatement used for?
50. In real time project which driver did u use ?
51. Difference between AWT and Swing compenents ?
52. Is there any heavy weight component in Swings ?
53. Can the Swing application if you upload in net, be compatible with your browser?
54. What should you do get your browser compatiblewith swing components?
55. What are the methods in Applet ?
56. When is init(),start() called ?
57. When you navigate from one applet to another what are the methods called?
58. What is the difference between Trusted and Untrusted Applet ?
59. What is Exception ?
60. What are the ways you can handle exception ?
61. When is try,catch block used ?
62. What is finally method in Exceptions ?
63. What are the types of access modifiers ?
64. What is protected and friendly ?
65. What are the other modifiers ?
66. Is synchronised modifier ?
67. What is meant by polymorphism ?
68. What is inheritance ?
69. What is method Overloading ? What is this in OOPS?
70. What is method Overriding ? What is it in OOPS ?
71. Does java support multi dimensional arrays ?
72. Is multiple inheritance used in Java ?
73. How do you send a message to the browser in__JavaScript ?
74. Does __javascript support multidimensional arrays ?
75. Why is XML used mainly?
76. Do use coding for database connectivity in XML?
77. What is DTD ?
79. Is there any tool in java that can create reports?
80. What is meant by Java ?
81. What is meant by a class ?
82. What is meant by a method ?
83. What are the OOPS concepts in Java ?
84. What is meant by encapsulation ? Explain with anexample
85. What is meant by inheritance ? Explain with anexample
86. What is meant by polymorphism ? Explain with an example
87. Is multiple inheritance allowed in Java ? Why ?
88. What is meant by Java interpreter ?
89. What is meant by JVM ?
90. What is a compilation unit ?
91. What is meant by identifiers ?
92. What are the different types of modifiers ?
93. What are the access modifiers in Java ?
94. What are the primitive data types in Java ?
95. What is meant by a wrapper class ?
96. What is meant by static variable and static method?
97. What is meant by Garbage collection ?
98. What is meant by abstract class
99. What is meant by final class, methods and variables ?
100. What is meant by interface ?
101. What is meant by a resource leak ?
102. What is the difference between interface and abstract class ?
103. What is the difference between public private,protected and static
104. What is meant by method overloading ?
105. What is meant by method overriding ?
106. What is singleton class ?
107. What is the difference between an array and a vector ?
108. What is meant by constructor ?
109. What is meant by casting ?
110. What is the difference between final, finally and finalize ?
111. What is meant by packages ?
112. What are all the packages ?
113. Name 2 calsses you have used ?
114. Name 2 classes that can store arbitrary number of objects ?
115. What is the difference between java.applet.* and java.applet.Applet ?
116. What is a default package ?
117. What is meant by a super class and how can you call a super class ?
118. What is anonymous class ?
119. Name interfaces without a method ?
120. What is the use of an interface ?
121. What is a serializable interface ?
122. How to prevent field from serialization ?
123. What is meant by exception ?
124. How can you avoid the runtime exception ?
125. What is the difference between throw and throws ?
126. What is the use of finally ?
127. Can multiple catch statements be used in exceptions ?
128. Is it possible to write a try within a try statement ?
129. What is the method to find if the object exited or not ?
130. What is meant by a Thread ?
131. What is meant by multi-threading ?
132. What is the 2 way of creating a thread ? Which is the best way and why?
133. What is the method to find if a thread is active or not ?
134. What are the thread-to-thread communcation ?
135. What is the difference between sleep and suspend ?
136. Can thread become a member of another thread ?
137. What is meant by deadlock ?
138. How can you avoid a deadlock ?
139. What are the three typs of priority ?
140. What is the use of synchronizations ?
141. Garbage collector thread belongs to which priority ?
142. What is meant by time-slicing ?
143. What is the use of ‘this’ ?
144. How can you find the length and capacity of a string buffer ?
145. How to compare two strings ?
146. What are the interfaces defined by Java.lang ?
147. What is the purpose of run-time class and system class
148. What is meant by Stream and Types ?
149. What is the method used to clear the buffer ?
150. What is meant by Stream Tokenizer ?
151. What is serialization and de-serialisation ?
152. What is meant by Applet ?
153. How to find the host from which the Applet has originated ?
154. What is the life cycle of an Applet ?
155. How do you load an HTML page from an Applet ?
156. What is meant by Applet Stub Interface ?
157. What is meant by getCodeBase and getDocumentBase method ?
158. How can you call an applet from a HTML file
159. What is meant by Applet Flickering ?
160. What is the use of parameter tag ?
161. What is audio clip Interface and what are all the methods in it ?
162. What is the difference between getAppletInfo and getParameterInfo ?
163. How to communicate between applet and an applet ?
164. What is meant by event handling ?
165. What are all the listeners in java and explain ?
166. What is meant by an adapter class ?
167. What are the types of mouse event listeners ?
168. What are the types of methods in mouse listeners?
169. What is the difference between panel and frame ?
170. What is the default layout of the panel and frame?
171. What is meant by controls and types ?
172. What is the difference between a scroll bar and ascroll panel.
173. What is the difference between list and choice ?
174. How to place a component on Windows ?
175. What are the different types of Layouts ?
176. What is meant by CardLayout ?
177. What is the difference between GridLayout andGridBagLayout
178. What is the difference between menuitem andcheckboxmenu item.
179. What is meant by vector class, dictionary class ,hash table class,and property class ?
180. Which class has no duplicate elements ?
181. What is resource bundle ?
182. What is an enumeration class ?
183. What is meant by Swing ?
184. What is the difference between AWT and Swing ?
185. What is the difference between an applet and a Japplet
186. What are all the components used in Swing ?
187. What is meant by tab pans ?
188. What is the use of JTree ?
189. How can you add and remove nodes in Jtree.
190. What is the method to expand and collapse nodes in a Jtree ?
191. What is the use of JTable ?
192. What is meant by JFC ?
193. What is the class in Swing to change the appearance of the Frame in Runtime.
194. How to reduce flicking in animation ?
195. What is JDBC ?
196. How do you connect to the database ? What are the steps ?
197. What are the drivers available in JDBC ? Explain
198. How can you load the driver ?
199. What are the different types of statement s ?
200. How can you created JDBC statements ?
201. How will you perform transactions using JDBC ?
202. What are the two drivers for web apllication?
203. What are the different types of 2 tier and 3 tier architecture ?
204. How can you retrieve warning in JDBC ?
205. What is the exception thrown by JDBC ?
206. What is meants by PreparedStatement ?
207. What is difference between PreparedStatement and Statement ?
208. How can you call the stored procedures ?
209. What is meant by a ResultSet ?
210. What is the difference between ExecuteUpdate and ExecuteQuery ?
211. How do you know which driver is connected to a database ?
212. What is DSN and System DSN and differentiate these two ?
213. What is meant by TCP, IP, UDP ?
214. What is the difference between TCP and UDP ?
215. What is a proxy server ?
216. What is meant by URL
217. What is a socket and server sockets ?
218. When MalformedURLException and UnknownHost Exception throws ?
219. What is InetAddress ?
220. What is datagram and datagram packets anddatagram sockets ?
221. Write the range of multicast socket IP address ?
222. What is meant by a servlet ?
223. What are the types of servlets ? Explain
224. What is the different between a Servlet and aCGI.
225. What is the difference between 2 types of Servlets ?
226. What is the type of method for sending request from HTTP server ?
227. What are the exceptions thrown by Servlets ? Why?
229. What is the life cycle of a servlet ?
230. What is meant by cookies ?
231. What is HTTP Session ?
232. What is the difference between GET and POST methods ?
233. How can you run a Servlet Program ?
234. How to commuincate between an applet and a servlet ?
235. What is a Servlet-to-Servlet communcation ?
236. What is Session Tracking ?
237. What are the security issues in Servlets ?
238. What is HTTP Tunneling
239. How do you load an image in a Servlet ?
240. What is Servlet Chaining ?
241. What is URL Rewriting ?
242. What is context switching ?
243. What is meant by RMI ?
244. Explain RMI Architecture ?
245. What is meant by a stub ?
246. What is meant by a skelotn ?
247. What is meant by serialisation and deserialisation ?
248. What is meant by RRL ?
249. What is the use of TL ?
250. What is RMI Registry ?
251. What is rmic ?
252. How will you pass parameter in RMI ?
253. What exceptions are thrown by RMI ?
254. What are the steps involved in RMI ?
255. What is meant by bind(), rebind(), unbind() and lookup() methods
256. What are the advanatages of RMI ?
257. What is JNI ?
258. What is Remote Interface ?
259. What class is used to create Server side object ?
260. What class is used to bind the server object with RMI Registry ?
261. What is the use of getWriter method ?
262. What is meant by Javabeans ?
263. What is JAR file ?
264. What is meant by manifest files ?
265. What is Introspection ?
266. What are the steps involved to create a bean ?
267. Say any two properties in Beans ?
268. What is persistence ?
269. What is the use of beaninfo ?
270. What are the interfaces you used in Beans ?
271. What are the classes you used in Beans ?
272. What is the diffrence between an Abstract class and Interface ?
273. What is user defined exception ?
274. What do you know about the garbate collector ?
275. What is the difference between C++ & Java ?
276. Explain RMI Architecture?
277. How do you communicate in between Applets &Servlets ?
278. What is the use of Servlets ?
279. What is JDBC? How do you connect to the Database?
280. In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
281. What is the difference between Process and Threads ?
282. What is the difference between RMI & Corba ?
283. What are the services in RMI ?
284. How will you initialize an Applet ?
285. What is the order of method invocation in anApplet ?
286. When is update method called ?
287. How will you pass values from HTML page to theServlet ?
288. Have you ever used HashTable and Dictionary ?
289. How will you communicate between two Applets ?
290. What are statements in JAVA ?
291. What is JAR file ?
292. What is JNI ?
293. What is the base class for all swing components ?
294. What is JFC ?
295. What is Difference between AWT and Swing ?
296. Considering notepad/IE or any other thing asprocess, What will Happen if you start notepad or IE 3 times?
297. Where 3 processes are started or 3 threads arestarted ?
298. How does thread synchronization occurs inside a monitor ?
299. How will you call an Applet using a Java Script function ?
300. Is there any tag in HTML to upload and download files ?
301. Why do you Canvas ?
302. How can you push data from an Applet to Servlet ?
303. What are 4 drivers available in JDBC ?
304. How you can know about drivers and database information ?
305. If you are truncated using JDBC, How can you know ..that how much
Data is truncated ?And What situation , each of the 4 drivers used ?
306. How will you perform transaction using JDBC ?
307. In RMI, server object first loaded into the memory and then the stub
308. Reference is sent to the client ? or whether astub reference is directly sent to the client ?
309. Suppose server object is not loaded into thememory, and the Client request for it , what will happen?
310. What is serialization ?
311. Can you load the server object dynamically? If so, what are the Major 3 steps involved in it ?
312. What is difference RMI registry and OSAgent ?
313. To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the
client ? What will you do for achieving for this ?
314. What are the benefits of Swing over AWT ?
315. Where the CardLayout is used ?
316. What is the Layout for ToolBar ?
317. What is the difference between Grid and GridbagLayout ?
318. How will you add panel to a Frame ?
319. What is the corresponding Layout for Card in Swing ?
320. What is light weight component ?
321. Can you run the product development on all operating systems ?
322. What is the webserver used for running the Servlets ?
323. What is Servlet API used for conneting database ?
324. What is bean ? Where it can be used ?
325. What is difference in between Java Class and Bean?
326. Can we send object using Sockets ?
327. What is the RMI and Socket ?
328. How to communicate 2 threads each other ?
329. What are the files generated after using IDL to Java Compilet ?
330. What is the protocol used by server and client ?
331. Can I modify an object in CORBA ?
332. What is the functionality stubs and skeletons ?
333. What is the mapping mechanism used by Java to identify IDL language ?
334. Diff between Application and Applet ?
335. What is serializable Interface ?
336. What is the difference between CGI and Servlet ?
337. What is the use of Interface ?
338. Why Java is not fully objective oriented ?
339. Why does not support multiple Inheritance ?
340. What it the root class for all Java classes ?
341. What is polymorphism ?
342. 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 ?
343. In servlets, we are having a web page that isinvoking servlets
344. Username and password ? which is cheks in the database ?
Suppose the second page also If we want to verify the same information whethe it will connect to the database or it will be
used previous information?
345. What are virtual functions ?
349. Write down how will you create a binary Tree ?
350. What are the traverses in Binary Tree ?
351. Write a program for recursive Traverse ?
352. What are session variable in Servlets ?
353. What is client server computing ?
354. What is Constructor and Virtual function? Can we call Virtual Funciton in a constructor ?
355. Why we use OOPS concepts? What is its advantage ?
356. What is the middleware ? What is the functionality of Webserver ?
357. Why Java is not 100 % pure OOPS ? ( EcomServer )
358. When we will use an Interface and Abstract class?
359. What is an RMI?
360. How will you pass parameters in RMI ? Why u serialize?
361. What is the exact difference in between Unicast and Multicast object ? Where we will use ?
362. What is the main functionality of the Remote Reference Layer ?
363. How do you download stubs from a Remote place ?
364. What is the difference in between C++ and Java ?can u explain in detail?
365. I want to store more than 10 objects in a remote server ? Which Methodology will follow ?
366. What is the main functionality of the Prepared Statement ?
367. What is meant by static query and dynamic query ?
368. What are the Normalization Rules ? Define theNormalization ?
369. What is meant by Servelet? What are theparameters of the service Method ?
370. What is meant by Session ? Tell me something about HTTPSession Class ?
381. How do you invoke a Servelt? What is the difference in between DoPost and doGet methods ?
382. What is the difference in between the HTTPServlet and Generic Servlet?
383. Expalin their methods ? Tell me their parameter names also ?
384. Have you used threads in Servelet ?
385. Write a program on RMI and JDBC using StoredProcedure ?
386. How do you sing an Applet ?
387. In a Container there are 5 components. I want to display the all The components names, how will you do that one ?
388. Why there are some null interface in java ? Whatdoes it mean ?
389. Give me some null interfaces in JAVA ?
390. Tell me the latest versions in JAVA related areas?
391. What is meant by class loader ? How many typesare there? When will we use them ?
392. How do you load an Image in a Servlet ?
393. What is meant by flickering ?
394. What is meant by distributed Application ? Why we are using that in our applications ?
395. What is the functionality of the stub ?
396. Have you used any version control ?
397. What is the latest version of JDBC ? What are thenew features are added in that ?
398. Explain 2 tier and 3 -tier Architecture ?
399. What is the role of the webserver ?
400. How have you done validation of the fileds in your project ?
401. What is the main difficulties that you are faced in your project ?
402. What is meant by cookies ? Explain ?
403. Problem faced in your earlier project
404. How OOPS concept is achieved in Java
405. Features for using Java
406. How does Java 2.0 differ from Java 1.0
407. Public static void main - Explain
408. What are command line arguments
409. Explain about the three-tier model
410. Difference between String & StringBuffer
411. Wrapper class. Is String a Wrapper Class
412. What are the restriction for static method
413. Purpose of the file class
414. Default modifier in Interface
415. Difference between Interface & Abstract class
416. Can abstract be declared as Final
417. Can we declare variables inside a method as Final Variables
418. What is the package concept and use of package
419. How can a dead thread be started
420. Difference between Applet & Application
421. Life cycle of the Applet
422. Can Applet have constructors
423. Differeence between canvas class & graphics class
424. Explain about Superclass & subclass
425. Difference between TCP & UDP
426. What is AppletStub
427. Explain Stream Tokenizer
428. What is the difference between two types of threads
429. Checked & Unchecked exception
430. Use of throws exception
431. What is finally in exception handling
432. Vector class
433. What will happen to the Exception object afterexception handling two types of multi-tasking two ways to create the
thread Synchronization I/O Filter
434. How can you retrieve warnings in JDBC
435. Can applet in different page communicate with each other
436. Four driver Manager
437. Features of JDBC 20
438. Explain about stored procedures
439. Servlet Life cycle
440. Why do you go for servlet rather than CGI
441. How to generate skeleton & Stub classes
442. Explain lazy activation
443. Firewalls in RMI
12
JAVA
1. What are concepts of OOPS and how are they implemented in Java?
2. What is dynamic binding?
3. How to implement RMI in Java?
4. What is Object Serialization and how it can be used?
5. What are the common problems you have faced while implementing Java?
6. How can you debug the Java code?
7. How can you cast objects? When you call a method while casting to the
parent, which method will be called.
8. How can you call parent methods?
9. How swing components are different from AWT? How can you draw usingSwing components?
10. What is 1.1 AWT event handling? How can a listener identify that the event came from a particular object?
11. What is finalize method? When is it called?
12. When you are opening the file, what are the exceptions that are to be caught?
13. In socket programming how does server know that a client is connected to it?
14. Can you declare a static variable in a method?
15. What is thread deadlock? How do you resolve it?
16. How can you take string into InputStream?
17. How can you print nodes of a Binary tree?
18. How can you eliminate duplicates from an array?
19. How can you reverse a string?
20. What are interfaces?
21. What are inner classes? Can you call a private data from an inner class?
22. If you do not want to implement all the methods in an interface, what will you do?
23. How can you implement a multithreaded applet?
24. How can you connect to a remote database using Applet? (on servlets)
25. How can you convert a string to long?
26. What is finally keyword?
27. What are abstract classes?
28. As a developer what care do you take to improve the performance?
29. What are hot spots in Java programming?
30. JDBC
31. What are the runtime exceptions in Java that you get frequently?
32. Can you have a constructor in abstract class?
33. Can you call a constructor within a constructor?
34. How do you compare two strings?
35. Can you extend more than one interface?
36. What are the common JDBC problems that you have got?
37. What drivers have you used?
38. How can you get all the data from a table into a buffer?
39. What are different ways to register a driver?
40. Socket programming
41. Multiple server
42. Event handling in AWT 1.1
43. Inner classes
44. Gridbag Layout
45. What are the debugging tools you used?
46. How can you sort dates?
47. How can you insert data into long row column of database?
48. What is the difference between database null and Java null?

SQL
1. Write a query to list Ename and MgrName from EMP table.
2. Can you define foreign key with a key from the same table?
3. Is it recommended to define indexes on a foreign key?
4. When do you create an index?
5. Write a query to find out top two salary holders.
6. Top two salary holders in each department
7. What is an outer join?
8. What is correlated subquery?
9. What is the difference between Union, Unionall, Minus, and Intersect?
10. How primary key is implemented in Oracle?
11. ER diagrams?
12. What is denormalization?
13. What are different triggers and procedures of ?
14. What is procedure overloading?
15. What are restrictions on triggers?
16. What is table mutation? How do you avoid it?
17. What are cursor attributes?
18. How can you find out whether a row is updated or not?
19. How do you debug PL/SQL code?
20. Exception handling in PL/SQL
21. PL/SQL tables and records.
22. Global variables in packages.
23. Master detail relationship.
24. How can you tune SQL statements?
25. What is the restriction on varchar variable on procedure?
26. What are restrictions on long row?
27. How can you eliminate duplicates?
28. Can you create an index on sex column where there is M or F?
29. Normalization
30. How can you determine SGA site?
13
JAVA and EJB - INTERVIEW QUESTIONS
1.What is Entity Bean and Session Bean ?
2.What are the methods of Entity Bean?
3.How does Stateful Session bean store its state ?
4.Why does Stateless Session bean not store its state even though it has ejbActivate and ejbPassivate ?
5.What are the services provided by the container ?
6.Types of transaction ?
7.What is bean managed transaction ?
8.Why does EJB needs two interface( Home and Remote Interface) ?
9.What are transaction attributes ?
10.What is the difference between Container managed persistent bean and Bean managed persistent entity bean ?
11.What is J2EE ?
12.What is JTS ?
13.How many entity beans used and how many tables can u use in EJB project ?
14.What is scalable,portability in J2EE?
15.What is Connection pooling?Is it advantageous?
16.Method and class used for Connection pooling ?
17.How to deploy in J2EE(i.e Jar,War file) ?
18.How is entity bean created using Container managed entity bean ?
Sotware architechture of EJB ?
19.In Entity bean will the create method in EJB home and ejbCreate in Entity bean have the same parameters ?
20.What methods do u use in Servlet – Applet communication ?
21.What are the types of Servlet ?
22.Difference between HttpServlet and Generic Servlets ?
23.Difference between doGet and doPost ?
24.What are the methods in HttpServlet?
25.What are the types of SessionTracking?
26.What is Cookie ? Why is Cookie used ?
27.If my browser does not support Cookie,and my server sends a cookie instance What will happen ?
28.Why do u use Session Tracking in HttpServlet ?
29.Can u use javaScript in Servlets ?
30.What is the capacity the doGet can send to the server ?
31.What are the type of protocols used in HttpServlet ?
32.Difference between TCP/IP and IP protocol ?
33.Why do you use UniCastRemoteObject in RMI ?
34.How many interfaces are used in RMI?
35.Can Rmi registry be written in the code, without having to write it in the command prompt and if yes where?
36.Why is Socket used ?
37.What are the types of JDBC drivers ?
38.Explain the third driver(Native protocol driver) ?
39.Which among the four driver is pure Java driver ?
40.What are the Isolation level in JDBC transaction ?
41.How do you connect with the database ?
42.How do you connect without the Class.forName (" ") ?
43.What does Class.forName return ?
44.What are the types of statement ?
45.Why is preparedStatement,CallableStatement used for?
46.In real time project which driver did u use ?
47.Difference between AWT and Swing compenents ?
48.Is there any heavy weight component in Swings ?
49.Can the Swing application if you upload in net, be compatible with your browser?
50.What should you do get your browser compatible with swing components?
51.What are the methods in Applet ?
52.When is init(),start() called ?
53.When you navigate from one applet to another what are the methods called ?
54.What is the difference between Trusted and Untrusted Applet ?
What is Exception ?
55.What are the ways you can handle exception ?
56.When is try,catch block used ?
57.What is finally method in Exceptions ?
58.What are the types of access modifiers ?
59.What is protected and friendly ?
60.What are the other modifiers ?
61.Is synchronised modifier ?
62.What is meant by polymorphism ?
63.What is inheritance ?
64.What is method Overloading ? What is this in OOPS ?
65.What is method Overriding ? What is it in OOPS ?
66.Does java support multi dimensional arrays ?
67.Is multiple inheritance used in Java ?
68.How do you send a message to the browser in JavaScript ?
69.Does javascript support multidimensional arrays ?
70.Why is XML used mainly?
71.Do use coding for database connectivity in XML?
72.What is DTD ?
73.Is there any tool in java that can create reports ?



Interview Type of Questions

74.What is meant by Java ?
75.What is meant by a class ?
76.What is meant by a method ?
77.What are the OOPS concepts in Java ?
78.What is meant by encapsulation ? Explain with an example
79.What is meant by inheritance ? Explain with an example
80.What is meant by polymorphism ? Explain with an example
81.Is multiple inheritance allowed in Java ? Why ?
82.What is meant by Java interpreter ?
83.What is meant by JVM ?
84.What is a compilation unit ?
85.What is meant by identifiers ?
86.What are the different types of modifiers ?
87.What are the access modifiers in Java ?
88.What are the primitive data types in Java ?
89.What is meant by a wrapper class ?
90.What is meant by static variable and static method ?
91.What is meant by Garbage collection ?
92.What is meant by abstract class
93.What is meant by final class, methods and variables ?
94.What is meant by interface ?
95.What is meant by a resource leak ?
96.What is the difference between interface and abstract class ?
97.What is the difference between public private, protected and static What is meant by method overloading ?
98.What is meant by method overriding ?
99.What is singleton class ?
100.What is the difference between an array and a vector ?
101.What is meant by constructor ?
102.What is meant by casting ?
103.What is the difference between final, finally and finalize ?
104.What is meant by packages ?
105.What are all the packages ?
106.Name 2 calsses you have used ?
107.Name 2 classes that can store arbitrary number of objects ?
108.What is the difference between java.applet.* and java.applet.Applet ?
109.What is a default package ?
110.What is meant by a super class and how can you call a super class ?
111.What is anonymous class ?
112.Name interfaces without a method ?
113.What is the use of an interface ?
114.What is a serializable interface ?
115.How to prevent field from serialization ?
116.What is meant by exception ?
117.How can you avoid the runtime exception ?
118.What is the difference between throw and throws ?
119.What is the use of finally ?
120.Can multiple catch statements be used in exceptions ?
121.Is it possible to write a try within a try statement ?
122.What is the method to find if the object exited or not ?
123.What is meant by a Thread ?
124.What is meant by multi-threading ?
125.What is the 2 way of creating a thread ? Which is the best way and why ?
126.What is the method to find if a thread is active or not ?
127.What are the thread-to-thread communcation ?
128.What is the difference between sleep and suspend ?
129.Can thread become a member of another thread ?
130.What is meant by deadlock ?
131.How can you avoid a deadlock ?
132.What are the three typs of priority ?
133.What is the use of synchronizations ?
134.Garbage collector thread belongs to which priority ?
135.What is meant by time-slicing ?
136.What is the use of ‘this’ ?
137.How can you find the length and capacity of a string buffer ?
138.How to compare two strings ?
139.What are the interfaces defined by Java.lang ?
140.What is the purpose of run-time class and system class
141.What is meant by Stream and Types ?
142.What is the method used to clear the buffer ?
143.What is meant by Stream Tokenizer ?
144.What is serialization and de-serialisation ?
145.What is meant by Applet ?
146.How to find the host from which the Applet has originated ?
147.What is the life cycle of an Applet ?
148.How do you load an HTML page from an Applet ?
149.What is meant by Applet Stub Interface ?
150.What is meant by getCodeBase and getDocumentBase method ?
151.How can you call an applet from a HTML file
152.What is meant by Applet Flickering ?
153.What is the use of parameter tag ?
154.What is audio clip Interface and what are all the methods in it ?
155.What is the difference between getAppletInfo and getParameterInfo ?
156.How to communicate between applet and an applet ?
157.What is meant by event handling ?
158.What are all the listeners in java and explain ?
159.What is meant by an adapter class ?
160.What are the types of mouse event listeners ?
161.What are the types of methods in mouse listeners ?
162.What is the difference between panel and frame ?
163.What is the default layout of the panel and frame ?
164.What is meant by controls and types ?
165.What is the difference between a scroll bar and a scroll panel.
166.What is the difference between list and choice ?
167.How to place a component on Windows ?
168.What are the different types of Layouts ?
169.What is meant by CardLayout ?
170.What is the difference between GridLayout and GridBagLayout
171.What is the difference between menuitem and checkboxmenu item.
172.What is meant by vector class, dictionary class , hash table class,and property class ?
173.Which class has no duplicate elements ?
174.What is resource bundle ?
175.What is an enumeration class ?
176.What is meant by Swing ?
177.What is the difference between AWT and Swing ?
178.What is the difference between an applet and a Japplet
179.What are all the components used in Swing ?
180.What is meant by tab pans ?
181.What is the use of JTree ?
182.How can you add and remove nodes in Jtree.
183.What is the method to expand and collapse nodes in a Jtree ?
184.What is the use of JTable ?
185.What is meant by JFC ?
186.What is the class in Swing to change the appearance of the Frame in Runtime.
187.How to reduce flicking in animation ?
188.What is JDBC ?
189.How do you connect to the database ? What are the steps ?
190.What are the drivers available in JDBC ? Explain
191.How can you load the driver ?
192.What are the different types of statement s ?
193.How can you created JDBC statements ?
194.How will you perform transactions using JDBC ?
195.What are the two drivers for web apllication?
196.What are the different types of 2 tier and 3 tier architecture ?
197.How can you retrieve warning in JDBC ?
198.What is the exception thrown by JDBC ?
199.What is meants by PreparedStatement ?
200.What is difference between PreparedStatement and Statement ?
201.How can you call the stored procedures ?
202.What is meant by a ResultSet ?
203.What is the difference between ExecuteUpdate and ExecuteQuery ?
204.How do you know which driver is connected to a database ?
205.What is DSN and System DSN and differentiate these two ?
206.What is meant by TCP, IP, UDP ?
207.What is the difference between TCP and UDP ?
208.What is a proxy server ?
209.What is meant by URL
210.What is a socket and server sockets ?
211.When MalformedURLException and UnknownHost Exception throws ?
212.What is InetAddress ?
213.What is datagram and datagram packets and datagram sockets ?
214.Write the range of multicast socket IP address ?
215.What is meant by a servlet ?
216.What are the types of servlets ? Explain
217.What is the different between a Servlet and a CGI.
218.What is the difference between 2 types of Servlets ?
219.What is the type of method for sending request from HTTP server ?
220.What are the exceptions thrown by Servlets ? Why ?
221.What is the life cycle of a servlet ?
222.What is meant by cookies ?
223.What is HTTP Session ?
224.What is the difference between GET and POST methods ?
225.How can you run a Servlet Program ?
226.How to commuincate between an applet and a servlet ?
227.What is a Servlet-to-Servlet communcation ?
228.What is Session Tracking ?
229.What are the security issues in Servlets ?
230.What is HTTP Tunneling
231.How do you load an image in a Servlet ?
232.What is Servlet Chaining ?
233.What is URL Rewriting ?
234.What is context switching ?
235.What is meant by RMI ?
236.Explain RMI Architecture ?
237.What is meant by a stub ?
238.What is meant by a skelotn ?
239.What is meant by serialisation and deserialisation ?
240.What is meant by RRL ?
241.What is the use of TL ?
242.What is RMI Registry ?
243.What is rmic ?
244.How will you pass parameter in RMI ?
245.What exceptions are thrown by RMI ?
246.What are the steps involved in RMI ?
247.What is meant by bind(), rebind(), unbind() and lookup() methods
248.What are the advanatages of RMI ?
249.What is JNI ?
250.What is Remote Interface ?
251.What class is used to create Server side object ?
252.What class is used to bind the server object with RMI Registry ?
253.What is the use of getWriter method ?
254.What is meant by Javabeans ?
255.What is JAR file ?
256.What is meant by manifest files ?
257.What is Introspection ?
258.What are the steps involved to create a bean ?
259.Say any two properties in Beans ?
260.What is persistence ?
261.What is the use of beaninfo ?
262.What are the interfaces you used in Beans ?
263.What are the classes you used in Beans ?


INTERVIEW QUESTIONS
264.What is the diffrence between an Abstract class and Interface ?
265.What is user defined exception ?
266.What do you know about the garbate collector ?
267.What is the difference between C++ & Java ?
268.Explain RMI Architecture?
269.How do you communicate in between Applets & Servlets ?
270.What is the use of Servlets ?
271.What is JDBC? How do you connect to the Database ?
272.In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
273.What is the difference between Process and Threads ?
274.What is the difference between RMI & Corba ?
275.What are the services in RMI ?
276.How will you initialize an Applet ?
277.What is the order of method invocation in an Applet ?
278.When is update method called ?
279.How will you pass values from HTML page to the Servlet ?
280.Have you ever used HashTable and Dictionary ?
281.How will you communicate between two Applets ?
282.What are statements in JAVA ?
283.What is JAR file ?
284.What is JNI ?
285.What is the base class for all swing components ?
286.What is JFC ?
287.What is Difference between AWT and Swing ?
288.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 ?
289.How does thread synchronization occurs inside a monitor ?
290.How will you call an Applet using a Java Script function ?
291.Is there any tag in HTML to upload and download files ?
292.Why do you Canvas ?
293.How can you push data from an Applet to Servlet ?
294.What are 4 drivers available in JDBC ?
295.How you can know about drivers and database information ?
296.If you are truncated using JDBC, How can you know ..that how much data is truncated ?And What situation , each of the 4 drivers used ?
297.How will you perform transaction using JDBC ?
298.In RMI, server object first loaded into the memory and then the stub reference is sent to the client ? or whether a stub reference is directly sent to the client ?
299.Suppose server object is not loaded into the memory, and the client request for it , what will happen?
300.What is serialization ?
301.Can you load the server object dynamically? If so, what are the major 3 steps involved in it ?
302.What is difference RMI registry and OSAgent ?
303.To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the client ? What will you do for achieving for this ?
304.What are the benefits of Swing over AWT ?
305.Where the CardLayout is used ?
306.What is the Layout for ToolBar ?
307.What is the difference between Grid and GridbagLayout ?
308.How will you add panel to a Frame ?
309.What is the corresponding Layout for Card in Swing ?
310.What is light weight component ?
311.Can you run the product development on all operating systems ?
312.What is the webserver used for running the Servlets ?
313.What is Servlet API used for conneting database ?
314.What is bean ? Where it can be used ?
315.What is difference in between Java Class and Bean ?
316.Can we send object using Sockets ?
317.What is the RMI and Socket ?
318.How to communicate 2 threads each other ?
319.What are the files generated after using IDL to Java Compilet ?
320.What is the protocol used by server and client ?
321.Can I modify an object in CORBA ?
322.What is the functionality stubs and skeletons ?
323.What is the mapping mechanism used by Java to identify IDL language ?
324.Diff between Application and Applet ?
325.What is serializable Interface ?
326.What is the difference between CGI and Servlet ?
327.What is the use of Interface ?
328.Why Java is not fully objective oriented ?
329.Why does not support multiple Inheritance ?
330.What it the root class for all Java classes ?
331.What is polymorphism ?
332.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 ?
332.In servlets, we are having a web page that is invoking servlets username and password ? which is cheks in the database ? Suppose the second page also If we want to verify the same information whethe it will connect to the database or it will be used previous information?
333.What are virtual functions ?
334.Write down how will you create a binary Tree ?
335.What are the traverses in Binary Tree ?
336.Write a program for recursive Traverse ?
337.What are session variable in Servlets ?
338.What is client server computing ?
339.What is Constructor and Virtual function? Can we call Virtual funciton in a constructor ?
340.Why we use OOPS concepts? What is its advantage ?
341.What is the middleware ? What is the functionality of Webserver ?
342.Why Java is not 100 % pure OOPS ? ( EcomServer )
343.When we will use an Interface and Abstract class ?
344.What is an RMI?
345.How will you pass parameters in RMI ? Why u serialize?
346.What is the exact difference in between Unicast and Multicast object ? Where we will use ?
347.What is the main functionality of the Remote Reference Layer ?
348.How do you download stubs from a Remote place ?
349.What is the difference in between C++ and Java ? can u explain in detail ? I want to store more than 10 objects in a remote server ? Which methodology will follow ?
350.What is the main functionality of the Prepared Statement ?
351.What is meant by static query and dynamic query ?
352.What are the Normalization Rules ? Define the Normalization ?
353.What is meant by Servelet? What are the parameters of the service method ?
354.What is meant by Session ? Tell me something about HTTPSession Class ?
355.How do you invoke a Servelt? What is the difference in between doPost and doGet methods ?
356.What is the difference in between the HTTPServlet and Generic Servlet ? Expalin their methods ? Tell me their parameter names also ?
357.Have you used threads in Servelet ?
358.Write a program on RMI and JDBC using StoredProcedure ?
359.How do you sing an Applet ?
360.In a Container there are 5 components. I want to display the all the components names, how will you do that one ?
361.Why there are some null interface in java ? What does it mean ? Give me some null interfaces in JAVA ?
362.Tell me the latest versions in JAVA related areas ?
363.What is meant by class loader ? How many types are there? When will we use them?
364.How do you load an Image in a Servlet ?
365.What is meant by flickering ?
366.What is meant by distributed Application ? Why we are using that in our applications ?
367.What is the functionality of the stub ?
368.Have you used any version control ?
369.What is the latest version of JDBC ? What are the new features are added in that ?
370.Explain 2 tier and 3 -tier Architecture ?
371.What is the role of the webserver ?
372.How have you done validation of the fileds in your project ?
373.What is the main difficulties that you are faced in your project ?
374.What is meant by cookies ? Explain ?
375.Problem faced in your earlier project
376.How OOPS concept is achieved in Java
377.Features for using Java
378.How does Java 2.0 differ from Java 1.0
379.Public static void main - Explain
380.What are command line arguments
381.Explain about the three-tier model
382.Difference between String & StringBuffer
383.Wrapper class. Is String a Wrapper Class
384.What are the restriction for static method
385.Purpose of the file class
386.Default modifier in Interface
387.Difference between Interface & Abstract class
388.Can abstract be declared as Final
389.Can we declare variables inside a method as Final Variables
390.What is the package concept and use of package
391.How can a dead thread be started
392.Difference between Applet & Application
393.Life cycle of the Applet
394.Can Applet have constructors
395.Differeence between canvas class & graphics class
396.Explain about Superclass & subclass
397.Difference between TCP & UDP
398.What is AppletStub
399.Explain Stream Tokenizer
400.What is the difference between two types of threads
401.Checked & Unchecked exception
402.Use of throws exception
403.What is finally in exception handling
404.Vector class
405.What will happen to the Exception object after exception handling
406.Two types of multi-tasking
407.Two ways to create the thread
408.Synchronization
409.I/O Filter
410.How can you retrieve warnings in JDBC
411.Can applet in different page communicate with each other
412.Four driver Manager
413.Features of JDBC 20
414.Explain about stored procedures
415.Servlet Life cycle
416.Why do you go for servlet rather than CGI
417.How to generate skeleton & Stub classes
418.Explain lazy activation
419.Firewalls in RMI

Comments

Popular posts from this blog

Asynchronous Vs. Synchronous Communications

Synchronous (One thread):   1 thread -> |<---A---->||<----B---------->||<------C----->| Synchronous (multi-threaded):   thread A -> |<---A---->| \ thread B ------------> ->|<----B---------->| \ thread C ----------------------------------> ->|<------C----->|

WebSphere MQ Interview Questions

What is MQ and what does it do? Ans. MQ stands for MESSAGE QUEUEING. WebSphere MQ allows application programs to use message queuing to participate in message-driven processing. Application programs can communicate across different platforms by using the appropriate message queuing software products. What is Message driven process? Ans . When messages arrive on a queue, they can automatically start an application using triggering. If necessary, the applications can be stopped when the message (or messages) have been processed. What are advantages of the MQ? Ans. 1. Integration. 2. Asynchrony 3. Assured Delivery 4. Scalability. How does it support the Integration? Ans. Because the MQ is independent of the Operating System you use i.e. it may be Windows, Solaris,AIX.It is independent of the protocol (i.e. TCP/IP, LU6.2, SNA, NetBIOS, UDP).It is not required that both the sender and receiver should be running on the same platform What is Asynchrony? Ans. With messag

Advantages & Disadvantages of Synchronous / Asynchronous Communications?

  Asynchronous Communication Advantages: Requests need not be targeted to specific server. Service need not be available when request is made. No blocking, so resources could be freed.  Could use connectionless protocol Disadvantages: Response times are unpredictable. Error handling usually more complex.  Usually requires connection-oriented protocol.  Harder to design apps Synchronous Communication Advantages: Easy to program Outcome is known immediately  Error recovery easier (usually)  Better real-time response (usually) Disadvantages: Service must be up and ready. Requestor blocks, held resources are “tied up”.  Usually requires connection-oriented protocol