1 / 10

Object-Oriented Design and Software Applications

Learn how to develop software applications using Java programming and the Eclipse Integrated Development Environment (IDE).

abradley
Download Presentation

Object-Oriented Design and Software Applications

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. Object-Oriented Design and Software Applications

  2. You will learn to use… • Java programming to develop software applications. • Eclipse Integrated Development Environment (IDE).

  3. Introduction to Java Programming • Sun Microsystems targeted consumer electronic devices and in 1991 initiated a research project which produced a language for this purpose, “Oak”, a C++ based language • In 1995, the language was redesigned for internet applications • Java programs can be embedded in HTML pages as Java Applets • Java programs are not limited to web applications.

  4. Objective of Java Programming • Object Oriented - properties and behaviors • Java is Distributed – programs can run on computer networks. • Java is Interpreted – Java programs are interpreted in web browsers

  5. Objectives of Java Programming • Java is Robust – Handles runtime errors and ends program gracefully. • Java is Secure – Running JAVA Applet will not destroy your system • Java Performance – Slow compared to C++. But OK for most interactive applications • Java is Multithreaded – Can perform several tasks e.g., downloading music and playing it simultaneously.

  6. Java Environment • Five phases required for a Java program • Phase I - Edit • Eclipse will be our editor • Java program files end with .java extension • Phase II - Compile • Compiler translates source code into bytecode • Bytecode is interpreted during the execution phase • Compiled file ends with .class extension

  7. Java Environment • Phase III - Load • Class loader placed the .classfile into main memory • May be loaded from a local disk or across a network • Phase IV - Verify • Bytecode verifier ensures that classes are valid and don’t violate security restrictions of Java • Phase V – Execute • Interpretes one bytecode at a time • Interpreter is also called the Java Virtual Machine (JVM) • Same process for applications and applets • Each browser that supports Java has a built-in JVM

  8. Software Development Method • Specify the problem • Analyze the problem • Design the classes to solve the problem by: • Locating relevant classes in existing libraries • Modifying existing classes where necessary • Designing new classes where necessary • Implement the new and modified classes • Test and verify the completed program • Maintain and update the program

  9. Algorithm • A sequence of precise instructions which leads to a solution • Algorithm to add two numbers • Define two variables to hold the numbers. • Ask user to enter two numbers. • Add numbers together for answer. • Display the answer to the user.

  10. Time for First Program

More Related