Presentation is loading. Please wait.

Presentation is loading. Please wait.

A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire.

Similar presentations


Presentation on theme: "A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire."— Presentation transcript:

1 A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire

2 Outline Why? C-Sharp(C#) Java Comparisons Examples Conclusion Questions

3 Why? Java clone/replacement Handles low level plumbing issues Shared/different features

4 C-Sharp(1) New Microsoft programming Language “one of our key design goals was to make the C# language component-oriented” Anders Hejlsberg incorporates XML comment tags

5 C-Sharp(2) Microsoft Intermediate Language (MSIL) Common Language Runtime (CLR) Language Interoperability Compiled language

6 Java Developed by Sun Microsystems Java Byte Code Java Virtual Machine Platform interoperability Interpreted language

7 Comparisons Syntax Memory management Efficiency Functionality -Object serialization -Collections -Exception handling

8 New Features Delegates Unsafe Code Boxing Preprocessor Directives Overflow Detection COM integration

9 Hello World! Using System ; Class Hello { Public static void Main () { Console.writeLine ("Hello World!"); } } //end of the main import java.io.*; public class MyProgram { public static void main(String[] args) { System.out.println( “Hello World!"); } }

10 Examples C-Sharp code -Array declarations: int[] iArray = new int[100]; float fArray[] = new float[100]; -Inheritance syntax: class B:A, IComparable{ …} Java Code -Array declarations int[] iArray = new int[100]; float fArray[] = new float[100 ]; -Inheritance syntax: class B extends A implements Comparable { …}

11 Conclusion C-Sharp is a new Microsoft Programming language C-Sharp - Language Interoperability, compiled Java - platform interoperability, interpreted Comparison with Java

12 Questions


Download ppt "A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire."

Similar presentations


Ads by Google