Java vs C sharp

Java vs C#

Java and C# shares many similarities between them. But they also holds some major differences that are listed below:

Java C#
Developed by Oracle. Developed by Microsoft.
High level, robust, secured and object-oriented programming language. Object-oriented programming language.
Run on a Java platform with the help of the Java Runtime Environment (JRE). Runs on .Net Framework on the Common Language Runtime (CLR).
Safety type is safe. Safety type is unsafe.
Built-in data types passed by value are known as primitive types. Built-in data types passed by value are known as simple types.
Arrays are direct specialization of Object. Arrays are specialization of System.
Does not support conditional compilation. Supports conditional compilation using preprocessor directives.
Does not support goto statement. Support goto statement.
Does not support structures and unions. Supports structures and unions.
Support checked exception and unchecked exception. Supports unchecked exception.