Executor Service to handle 1 billion requests at a time

Hi, Can anyone tell how can we use Threads to implement Executor Service to accept 1 billion requests at a time generate responses.


how to store html form input data into hsqldb by using java

as of now i have done with html form now i want to store user input from html form to database any one tell me logic how to do that one in java


private and final modifiers

what is the difference between private and final class ? with example please


Comparable vs. Comparator in Java

I have seen classes which implement both Comparable and Comparator. What does this mean? Why would I use one over the other?


Observer and Observable in java

When an Observable object is updated it invokes the update() method of each of its observers to notify that, it is changed


What is the Default access specifier for Interface

I have observed many classes in my application even in single class they didn't specify any access specifier for method. Can you tell me what is the default specifier for Interface


Thread deadlock detection in java

How can I detect that a deadlock has occurred in a Java program?


Synchronization vs Lock

java.util.concurrent api provides a class called as Lock, which would basically serializes the conntrol in order to access the critical resource. It gives method such as park() and unpark().

We can do similar things if we can use synchronized keyword and using wait() and notify() notifyAll() methods.

I am wondering which one of these is better in practice and why?


Difference between Facade and Adapter paterrn in Design pattern?

Both definition and usage looks same.
Any major differences


JAXB 2.0 API is being loaded from the bootstrap classloader

[INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
(from jar:file:/C:/m2/repository/com/sun/xml/bind/jaxb-impl/2.1.1
3/jaxb-impl-2.1.13.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs
2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the boot
strap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

Prev      2   Next