C# for Java Programmers

| C# | Java | Description |
|---|---|---|
| abstract | abstract | A class modifier that specifies that the class can t be instantiated but only derived by another class. |
| as | N/A | An operator used to perform casts conversion between compatible types. It casts the left operand to the type specified by the right operand and it returns null rather than throwing an exception if the cast fails. |
| base | super | A keyword used to access members of a base class from within a derived class. |
| bool | boolean | Used to declare System.Boolean variables. Boolean variables contain either true or false as their values. |
| break | break | Terminates the innermost loop in which it occurs. Transfers program flow to the statement immediately following the loop. |
| byte | N/A | Used to declare System.Byte variables. A byte is an 8-bit unsigned integer value between 0 255. (Note: A byte in Java is signed) |
| case | case | A keyword to define a labeled value within a switch statement. |
| catch | catch | A catch block specifies an exception to catch. They can only be used when coupled with a try block. |
| char | char | Used to declare a Unicode character variable of data type System.Char. Unicode characters are 16 bit integer values capable of representing most of the world s languages. |
| checked | N/A | A keyword used to control overflow checking on integral type arithmetic operations and conversions. |
| class | class | A keyword used to declare a class. |
| const | const | A field or local variable modifier that specifies the field cannot be modified. The const keyword is... |