1 / 49

CSci 1130 Intro to Computer Programming in Java

CSci 1130 Intro to Computer Programming in Java. Instructor Tatyana Volk. Most experts who follow Web development think that Java is the most significant thing that has been developed for the Web.

kumiko
Download Presentation

CSci 1130 Intro to Computer Programming in Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSci 1130 Intro to Computer Programming in Java Instructor Tatyana Volk

  2. Most experts who follow Web development think that Java is the most significant thing that has been developed for the Web.

  3. “Java may be overhyped, but it also may be as significant to the computer world as television was to broadcasting.”- U.S.News and World Report

  4. History of Java (author James Gosling)

  5. Developers can build a variety of applications using Java • spreadsheets • word processors • accounting applications • asset management • databases • human resources • sales

  6. Duke • The first applet -- Duke waving back at his parents over the Internet -- was born.

  7. Interesting Applets from Java Tutorial: • http://www.javasoft.com/applets/index.html

  8. All browsers are now Java-enabled.

  9. Java includes: • Object-oriented features • Platform independence (truly portable across different operating systems) • Multithreading (different processes are executed at the same time) • Garbage collection (automatic memory management) • Networking and security features • Internet –Web development features

  10. Basics of a Typical Java Environment. • Java systems generally consist of several parts: • an environment, • the language, the Java Applications Programming Interface (API) • class libraries

  11. Java programs go through 5 phases to be executed: • edit • compile • load • verify • execute

  12. Development Environments (IDE)

  13. Examples of such Java systems: • Java Workshop • Visual J++ (Microsoft) • Symantec Café • Visual Age (IBM) • JBuilder(Borland)

  14. The Java compiler translates the Java program into bytecodes -- the language understood by the Java interpreter. The file called with the extension .class is created.

  15. The Java compiler translates Java sourse code into Java bytecode, which is a representation of the program in a low-level form similar to machine language code. The Java interpreter reads Java bytecode and executes it on a specific machine.

  16. Loading The program must be placed in memory before it will be executed. This is done by the class loader that takes the Hello.class file containing bytecodes and transfers it into memory. The class file can be loaded from a disk on your system or over the Internet.

  17. When the browser sees the applet in HTML document, the browser launches the Java class loader to load the applet. Once the applet is loaded, the Java interpreter in the browser begins executing the applet.

  18. Before the bytecodes in an applet are executed by the Java interpreter, they are veryfied by the bytecode veryfier. (to ensure that files loaded from the Internet do not violate Java security restrictions - not to damage your files and system).

  19. Finally, the computer interprets the program, one bytecode at a time.

More Related