I have to implement timeout funtionality in read and write methods in socket programming in java. I am using java 1.4 compiler. Please send me the proper response as soon as possible.
What is the actual need of declare an interface and then implement it?We can directly define all the methods present in the interface in the class itself.Then why we are taking this headache??