A.1. The java.lang Package
This is the core Java package, and it consists of classes that form the building blocks of the rest of the language API. Table A.1 shows the classes in this package and their .NET counterparts.
Java | .NET |
---|---|
Boolean | System.Boolean |
Byte | System.Byte |
Character | System.Char |
Class | System.Type |
Double | System.Double |
Float | System.Single |
Integer | System.Int32 |
Long | System.Int64 |
Math | System.Math |
Object | System.Object |
Process | System.Diagnostics.Process |
Runtime | System.Diagnostics.Process |
Short | System.Int16 |
StrictMath | System.Math |
String | System.String |
StringBuffer | System.Text.StringBuilder |
Thread | System.Threading.Thread |
ThreadLocal | System.LocalDataStoreSlot |
Throwable | System.Exception |
Tables A.2 and A.3 show the ...
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.