I wrote this simple
java program which connects to internic server and returns the domain details. However, I am facing a strange problem. I may sound dumb but here is the program!
The Problem: The program runs fine (I mean no errors/exception during runtime). But it shows no output when I try to print the result from internic server in the last piece of try block. I tried rearranging the code and found that if I place the bf.readLine() after creating socket streams, there is no output. However, if I place it before the socket creation (at the start of main method), the program displays intended output.
Is there any stream conflict or so? I am a newbie to networking in Java. The solution may be obvious but i am not able to understand! Please help me!!!