Major differences between C# and Java



C# and Java are the object oriented programming languages that are widely used. The following are the differences between C# and Java −

Operator Overloading

C# Supports Operator overloading, but Java does not have a concept of Operator Overloading.

Delegates

C# has delegates, whereas Java does not support the concept.

Run Programs

Java has JVM (Java Virtual Machine) whereas C# has CLR (Common Language Runtime).

Conditional Compilation

C# uses preprocessor directives for Conditional Compilation whereas Java does not support it.

Goto statement

Java has no support for Goto statements whereas C# supports Goto statements

Structures and Unions

C# has the concept of structures and unions whereas Java has no support for them.


Advertisements