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.

Table A.1. The java.lang Package Classes and Their .NET Counterparts
Java.NET
BooleanSystem.Boolean
ByteSystem.Byte
CharacterSystem.Char
ClassSystem.Type
DoubleSystem.Double
FloatSystem.Single
IntegerSystem.Int32
LongSystem.Int64
MathSystem.Math
ObjectSystem.Object
ProcessSystem.Diagnostics.Process
RuntimeSystem.Diagnostics.Process
ShortSystem.Int16
StrictMathSystem.Math
StringSystem.String
StringBufferSystem.Text.StringBuilder
ThreadSystem.Threading.Thread
ThreadLocalSystem.LocalDataStoreSlot
ThrowableSystem.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.