Skip to main content

400 Java Interview Questions(301-370)

302 What is meant by TCP, IP, UDP ?
303 What is the difference between TCP and UDP ?
304 What is a proxy server ?
305 What is meant by URL
306 What is a socket and server sockets ?
307 When MalformedURLException and UnknownHost Exception throws ?
308 What is InetAddress ?
309 What is datagram and datagram packets and datagram sockets ?
310 Write the range of multicast socket IP address ?
311 What is meant by a servlet ?
312 What are the types of servlets ? Explain
313 What is the different between a Servlet and a CGI.
314 What is the difference between 2 types of Servlets ?

315 What is the type of method for sending request from HTTP server ?
316 What are the exceptions thrown by Servlets ? Why ?
317 What is the life cycle of a servlet ?
318 What is meant by cookies ?
319 What is HTTP Session ?
320 What is the difference between GET and POST methods ?
321 How can you run a Servlet Program ?
322 How to commuincate between an applet and a servlet ?
323 What is a Servlet-to-Servlet communcation ?
324 What is Session Tracking ?
325 What are the security issues in Servlets ?
326 What is HTTP Tunneling
327 How do you load an image in a Servlet ?
328 What is Servlet Chaining ?
329 What is URL Rewriting ?
330 What is context switching ?
331 What is meant by RMI ?
332 Explain RMI Architecture ?
333 What is meant by a stub ?
334 What is meant by a skelotn ?
335 What is meant by serialisation and deserialisation ?
336 What is meant by RRL ?
337 What is the use of TL ?
338 What is RMI Registry ?
339 What is rmic ?
340 How will you pass parameter in RMI ?
341 What exceptions are thrown by RMI ?
342 What are the steps involved in RMI ?
343 What is meant by bind(), rebind(), unbind() and lookup() methods
344 What are the advanatages of RMI ?
345 What is JNI ?
346 What is Remote Interface ?
347 What class is used to create Server side object ?
348 What class is used to bind the server object with RMI Registry ?
349 What is the use of getWriter method ?
350 What is meant by Javabeans ?
351 What is JAR file ?
352 What is meant by manifest files ?
353 What is Introspection ?
354 What are the steps involved to create a bean ?
355 Say any two properties in Beans ?
356 What is persistence ?
357 What is the use of beaninfo ?
358 What are the interfaces you used in Beans ?
359 What are the classes you used in Beans ?
360 What is Entity Bean and Session Bean ?
361 What are the methods of Entity Bean?
362 How does Stateful Session bean store its state ?
363 Why does Stateless Session bean not store its state even though it has
364 ejbActivate and ejbPassivate ?
365 What are the services provided by the container ?
366 Types of transaction ?
367 What is bean managed transaction ?
368 Why does EJB needs two interface( Home and Remote Interface) ?
369 What are transaction attributes ?
370 What is the difference between Container managed persistent bean and Bean

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