O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

29.2. Comparing Java and C#/.NET

I shall start by discussing the limitations of Java in general. You can skip to the next section if academic comparisons do not interest you.

I hope that the issues brought up in this section will show what you cannot accomplish in Java because of the absence of pointer operations, and also what you can do in C# because of the ability to perform pointer operations.

Java has three significant limitations. [3]

[3] You can perform some of the listed operations via JNI. However, JNI is not a pure-Java solution.

  • Coding beyond the JVM is impossible. You cannot write very low-level codes below the JVM layer. For example, you cannot write codes that interact with the underlying operating system's API using pure Java. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required