C# vs Java Part 3: The Frameworks (Network, Reflection, Security, Text)

Network Programming Both C# and Java provide framework libraries for reading and writing data to a network.  Java is again hindered by the same kind of problems it has with file IO.  It is difficult to do network programming in Java.  Let’s compare downloading a web page in both languages. Java: C# In this area, the .NET base library is much …

C# vs Java Part 1: The Languages (Continued)

Continued from C# vs Java Part 1: The Languages Primitive Types and Boxing There are a few subtle differences here that can really throw a programmer off.  I think the best way to describe this section is by examples. In C# this is valid In Java it looks like this Because both languages can autobox, I expect that I can …