c4learn_java vs c#

2
How Java Related to C# ? 1. After the creation of Java, Microsoft developed the C# language and C# is closely related to Java. 2. Many of C#’s features directly parallel Java. Both Java and C# share the same general C++- style syntax, support distributed programming, and utilize the same object model. 3. Though there are some differences between Java and C#, but the overall feel of these languages is very similar. 4. If you already know C#, then learning Java will be easy and vice versa 5. Java and C# are optimized for two different types of computing environments. 6. C# and Java Both Languages are drew from C++. 7. Both Languages are capable of creating cross platform portable program code. Important : How do Java & C# create cross-platform portable Code ? Consider Scenario of Java Programming Language 1. Java is created by Sun Micro System . 2. Java Compiler produces Intermediate code called Byte Code . 3. Byte Code i.e intermediate code is executed by the Run Time Environment. 4. In Java Run Time Environment is called as “JVM [ Java Virtual Machine]

Upload: qabiswajit

Post on 10-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: C4learn_Java vs C#

How Java Related to C# ?1. After the creation of Java, Microsoft developed the

C# language and C# is closely related to Java.2. Many of C#’s features directly parallel Java. Both Java

and C# share the same general C++-style syntax, support distributed programming, and utilize the same object model.

3. Though there are some differences between Java and C#, but the overall feel of these languages is very similar.

4. If you already know C#, then learning Java will be easy and vice versa

5. Java and C# are optimized for two different types of computing environments.

6. C# and Java Both Languages are drew from C++.

7. Both Languages are capable of creating cross platform portable program code.

Important : How do Java & C# create cross-platform

portable Code ?

Consider Scenario of Java Programming Language1. Java is created by Sun Micro System.2. Java Compiler produces Intermediate code called

Byte Code.3. Byte Code i.e intermediate code is executed by the

Run Time Environment.4. In Java Run Time Environment is called as “JVM” [ Java

Virtual Machine]5. If we have JVM already installed on any platform

then JVM can produce machine dependent Code based on the intermediate code.

Java Vs C SharpHere are some differences between Java and C Sharp.

Page 2: C4learn_Java vs C#

Point Java C#

Development Sun Microsystem Microsoft

Development Year 1995 2000

Data Types Less Primitive DT More Primitive DT

Struct Concept Not Supported Supported

Switch Case String in Switch Not Allowed String in Switch Allowed

Delegates Absent Supported

Re-commanded Reading :

External Article Link

Difference between Java and C# CodeProject

Similarities Between C# and Java MSDN

Our next Chapter is based on contribution of Java Programming to Internet Evolution.How java contribute to Internet ?