Chapter 3. C# and Java: What Is the Difference?

In June 2000, Microsoft introduced both the .NET platform and a new programming language called C#. The C# language was built with the hindsight gained from experience with many languages, most notably Java and C++. As a result, C# shares many similarities with Java. However, there are also some differences between the two languages—differences that go beyond syntax and constructs. To truly appreciate the differences and similarities in the languages, we encourage you to dive right into the rest of the chapters. This chapter gives you a snapshot of the differences and the similarities, which are explained in detail in the forthcoming chapters.

We will compare C# and Java using the following categories: ...

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.