Download presentation
Presentation is loading. Please wait.
Published byGrant Banks Modified over 9 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.