Skip to main content

400 Java Interview Questions(201-250)

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 ?

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