I want to Java's power for network programming. I saw many p2p program which is so power and secure and written in our friend Java. But I have little question. Does Java has the same power as C++ in network programming? [ April 11, 2008: Message edited by: omi sharma ]
Most of the programming problems can't be solved because you don't know what the exact problem is.
Defining your problem correctly leads you the right solution.
As a much newer language than C++, Java had Network programming in mind from the very beginning. You can see this in the java.net and java.io package design, for example. Sun Microsystem's slogan "the network is the computer" should tell you that.
In the standard library and a huge variety of open-source toolkits you will find a very large number of alternatives for network programming. Browse through the last few months of conversations in this forum for examples.
On the other hand: the standard Java libraries provide access only to the TCP and UDP protocols. If you want to do lower level stuff (ICMP, ARP, any kind of direct IP packet fiddling), you have to resort to native code (i.e., C/C++ additions to Java).