Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.

Similar presentations


Presentation on theme: "Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer."— Presentation transcript:

1 Computer Programming 2 Why do we study Java….

2 Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer arithmetic, structures, unions, multi-dimensional arrays, templates, multiple inheritance, or implicit type conversion

3 Java is internet friendly Java programs are transmitted as byte- codes, which means it is possible to download a Java program to any computer on the Internet and execute it.

4 Java is a dynamic and distributed language Any Java class can be loaded dynamically into a running Java interpreter at any time. Java also provides a lot of high-level support for networking, making it the preferred language for network applications.

5 Java is Object-Oriented. Java is a fully object-oriented language with strong support for proper software engineering techniques. Almost everything in Java is an object (simple types like numbers and booleans are not). Java code is organized into classes endowed with a single-inheritance property. This decision, to start with a clean object-oriented slate, has been vindicated by the ease with which various extensions have been created.

6 Java is Architecture Neutral (portable ) Because Java programs are compiled to bytecodes, they can run on any platform that supports Java. The Java language is the same on every computer. Java bytecodes help make "write once, run anywhere" possible.

7 Java is free Free compiler from the developers, the JDK (Java Developer’s Kit), is available at no charge from the Sun Microsystems at http://java.sun.com/.

8 Java is Statically (Strongly) Typed In a Java program, the type of the objects (numbers, characters, arrays, etc.) that are used must be defined. However, all object in the Java system also have a dynamic type. Most of Java’s type checking is done at compile time, but some runtime checks are still required, such as array bounds checking and null pointer checking.

9 Java is Multi-Threaded Most operating systems today (UNIX, Windows, etc.) support multi-tasking, i.e., they can perform more than one task at a time. A Java program can execute more than one thread at a time and it can take advantage of multiprocessor machine.

10 Java is Garbage Collected The Java system has a built-in program called the garbage collector that scans memory and automatically frees any memory chunks that are no longer in use.

11 Java is Robust Java programs can’t cause a computer to crash. This does not mean that Java programs don’t have bugs.

12 Java is Small It can run efficiently on personal computers with 4 Mb of RAM or more. The Java interpreter takes up only a few hundred kilobytes.

13 Java is Secure Java programs have no pointers, and byte- code programs like Java are strongly typed, so it is possible to verify a Java program before executing it. Web browsers to make sure that applets do not contain viruses use this verification.

14 Java is Extensible It is possible to interface Java programs to existing software libraries written in other languages.

15 Java is Well Understood. Java’s cool features are derived from other languages such as Lisp, Smalltalk, Pascal, Cedar, Objective-C, Self, Beta, and mostly C++. The language is new but the underlying technology is not

16 Java is Fun It is harder to make stupid mistakes, and it is easier to be productive.

17 Java is the language of the AP exam It is possible to get college credit. Last year a student scored a 5 on the AP exam!

18 Java can get you a job Go on the internet and let’s see 1. How many jobs we can find in our area 2. What is the salary range that these jobs pay.


Download ppt "Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer."

Similar presentations


Ads by Google