Java J2EE Interview Questions and Answers

201 Name 2 classes that can store arbitrary number of objects ?
202 What is the difference between java.applet.* and java.applet.Applet ?
203 What is a default package ?
204 What is meant by a super class and how can you call a super class ?
205 What is anonymous class ?
206 Name interfaces without a method ?
207 What is the use of an interface ?
208 What is a serializable interface ?
209 How to prevent field from serialization ?
210 What is meant by exception ?
211 How can you avoid the runtime exception ?
212 What is the difference between throw and throws ?
213 What is the use of finally ?
214 Can multiple catch statements be used in exceptions ?
215 Is it possible to write a try within a try statement ?
216 What is the method to find if the object exited or not ?
217 What is meant by a Thread ?
218 What is meant by multi-threading ?
219 What is the 2 way of creating a thread ? Which is the best way and why ?
220 What is the method to find if a thread is active or not ?
221 What are the thread-to-thread communcation ?
222 What is the difference between sleep and suspend ?
223 Can thread become a member of another thread ?
224 What is meant by deadlock ?
225 How can you avoid a deadlock ?
226 What are the three typs of priority ?
227 What is the use of synchronizations ?
228 Garbage collector thread belongs to which priority ?
229 What is meant by time-slicing ?
230 What is the use of ‘this’ ?
231 How can you find the length and capacity of a string buffer ?
232 How to compare two strings ?
233 What are the interfaces defined by Java.lang ?
234 What is the purpose of run-time class and system class
235 What is meant by Stream and Types ?
236 What is the method used to clear the buffer ?
237 What is meant by Stream Tokenizer ?
238 What is serialization and de-serialisation ?
239 What is meant by Applet ?
240 How to find the host from which the Applet has originated ?
241 What is the life cycle of an Applet ?
242 How do you load an HTML page from an Applet ?
243 What is meant by Applet Stub Interface ?
244 What is meant by getCodeBase and getDocumentBase method ?
245 How can you call an applet from a HTML file
246 What is meant by Applet Flickering ?
247 What is the use of parameter tag ?
248 What is audio clip Interface and what are all the methods in it ?
249 What is the difference between getAppletInfo and getParameterInfo ?
250 How to communicate between applet and an applet ?
251 What is meant by event handling ?
252 What are all the listeners in java and explain ?
253 What is meant by an adapter class ?
254 What are the types of mouse event listeners ?
255 What are the types of methods in mouse listeners ?
256 What is the difference between panel and frame ?
257 What is the default layout of the panel and frame ?
258 What is meant by controls and types ?
259 What is the difference between a scroll bar and a scroll panel.
260 What is the difference between list and choice ?
261 How to place a component on Windows ?
262 What are the different types of Layouts ?
263 What is meant by CardLayout ?
264 What is the difference between GridLayout and GridBagLayout
265 What is the difference between menuitem and checkboxmenu item.
266 What is meant by vector class, dictionary class , hash table class,and
267 property class ?
268 Which class has no duplicate elements ?
269 What is resource bundle ?
270 What is an enumeration class ?
271 What is meant by Swing ?
272 What is the difference between AWT and Swing ?
273 What is the difference between an applet and a Japplet
274 What are all the components used in Swing ?
275 What is meant by tab pans ?
276 What is the use of JTree ?
277 How can you add and remove nodes in Jtree.
278 What is the method to expand and collapse nodes in a Jtree ?
279 What is the use of JTable ?
280 What is meant by JFC ?
281 What is the class in Swing to change the appearance of the Frame in
284 What is JDBC ?
285 How do you connect to the database ? What are the steps ?
286 What are the drivers available in JDBC ? Explain
287 How can you load the driver ?
288 What are the different types of statement s ?
289 How can you created JDBC statements ?
290 How will you perform transactions using JDBC ?
291 What are the two drivers for web apllication?
292 What are the different types of 2 tier and 3 tier architecture ?
293 How can you retrieve warning in JDBC ?
294 What is the exception thrown by JDBC ?
295 What is meant by PreparedStatement ?
296 What is difference between PreparedStatement and Statement ?
297 How can you call the stored procedures ?
298 What is meant by a ResultSet ?
299 What is the difference between ExecuteUpdate and ExecuteQuery ?
300 How do you know which driver is connected to a database ?