Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
Bowman Discussion 1
I read the article A comparison of Java and C# which obviously looks at Java and C#, and gives the authors thoughts on the two languages, as an introductory teaching tool.
Both languages are fairly new with Java being released in 1995, and C# making its debut as part of Microsoft's .NET platform in 2002. To begin with both Java and C# make use of a virtual machine type interface, Java using the JVM, and C# using its CLR or Common Language Runtime. Microsoft’s point on using the CLR is that no matter what .NET language a program is coded in it will run though the CLR and be able to be compiled.
The author compares the Hello World program in C# and Java, and it was shocking how similar C# code is to Java. C# was developed to resemble C++ and more so Java just to guarantee that it would be comfortable to already experienced programmers.
C# is so similar to Java that the author at one point states that you can almost paste java code right into the Visual Studio IDE and only have a few things to fix. This being the case what is the point of C# if it is just a Microsoft java clone. First off its not a java clone, as is completely re written from the back end. C# features such as user-defined overloading. C# also offers the Microsoft IDE to enable very simple development of code which apparently cuts down on development time, just as anyone who has used Eclipse for java knows how crucial a great IDE is.
Overall both languages offer almost equal data types and object creation and process of each are almost identical. C# does seem to have the edge over java, except in the case of cross platform.
Discussion 1 - Robert Simpson
Robert Simpson's discussion goes into more detail about how the languages actually perform and talks about how in C# variables can be const or read-only which according to Robert will never allow the variable to change while the program is running.
He also talks about how Java primitives do not extend from anything and in C# the primitives such as integer do extend from something allowing them to be much more flexible and have the ability to talk to other objects unlike java.
Links to this Page