Skip to main content

400 Java Interview Questions(251-300)

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