Free Ebook Manual Download

Programming, Automotive, Hardware, Gadget

C# Versus Java

Microsoft describes C# (”C sharp”) as a “simple, modern, object-oriented, and type-safe programming language derived from C and C++.” That statement would apply equally well to Java. In fact, after comparing the two languages, it’s obvious that prerelease descriptions of C# resemble Java more than C++. As Example 1 illustrates, the language features and syntax are similar. Example 1(a) is the canonical “Hello World” program in Java, while Example 1(b) is the program in C#.
Read the rest of this entry »

Java Features • “Write Once, Run Anywhere.” • Portability is possible because of Java virtual machine technology: – Interpreted – JIT Compilers • Similar to C++, but “cleaner”: – No pointers, typedef, preprocessor, structs, unions, multiple inheritance, goto, operator overloading, automatic coercions, free. Java Subset for this Course • We will focus on a subset of the language that will allow us to develop a distributed application using CORBA. • Input and output will be character (terminal) based.
Read the rest of this entry »