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 ...

Get From Java to C#: A Developer's Guide 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.