Where's a good tutorial that explains both TCP & UDP?

I’m interested in creating a networked game but I’ve never achieved anything with networking. If anybody could tell me of some good tutorials involving TCP and UDP I would appreciate it. (I’d like to learn the two of them because they’re both suitable for different projects.)

search for “java nio tutorial” … that will get you going. You can also buy and try reading O’Reilly’s Java NIO, great book but not so intuitive if you are completely new. I suggest start off by tutorials, build some small app that uses it according to tutorials and then try Java NIO.

there some networking totorials in the the java tutorial at java.sun.com