lec1 - COMP201 Java Programming Topic 1: Introduction...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP201 Java Programming Topic 1: Introduction Readings: Chapter 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COMP201 Topic 1 / Slide 2 Outline C, C++, and Java Writing good codes in Java easier than in C++ Advantages of Java Simple, Object-Oriented, Platform-Independent, Robust and Secure How Java codes are executed Java Virtual Machine, Portability, robustness, and security Java libraries Where the power of Java come from Java and the internet What Java is good for
Background image of page 2
COMP201 Topic 1 / Slide 3 C C designed in 1970’s for operating system programming (relatively low-level) Strengths Efficient Not restrictive Weakness Expressiveness Only a small amount of built-in functionality.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COMP201 Topic 1 / Slide 4 C, C++ C++ designed in 1980’s, complete superset of C Changes Objects Parameterized types Unification of user-defined and built-in types Strengths Improved data abstraction and encapsulation More extensive built-ins (standard libraries) Weakness Considered by many to be over-complicated Contains all of C’s warts
Background image of page 4
COMP201 Topic 1 / Slide 5 C, C++ and Java Java: a language of 1990’s, Similar to C/C++ but not a superset Conscious design not to be backward compatible with C++, C. Originally not designed as a general-purpose programming language Strong emphasis on safety and portability Unique features make it particularly suitable for dynamic content delivery over the net
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
C, C++ and Java The design of Java starts with C syntax and semantics Adds a few features from C++: Objects, exceptions Leaves out parts unneeded, unsafe, complex Gosling: “Java omits many rarely used, poorly understood, confusing features of C++ that in our experience bring more grief than benefits.” Adds a few facilities not present in C or C++
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 18

lec1 - COMP201 Java Programming Topic 1: Introduction...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online