IST 311 ObjectOriented Design and Software Applications MIS
IST 311: Object-Oriented Design and Software Applications MIS 307: Algorithmic Concepts Spring 2010
The course is about… Object Oriented Design and Java Programming
You will learn to use… Unified Modeling Language (UML) via the use of Microsoft Visio, and Java programming to develop software applications. SUN Java and Eclipse Integrated Development Environment (IDE). LEGO Mindstorms with JAVA – maybe!
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.
Objective of Java Programming Simple - no pointers, simplified inheritance, java is “C++--” Object Oriented - properties and behaviors Java is Distributed – programs can run on computer networks. Java is Interpreted – Java programs are interpreted in web browsers
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.
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
Java Environment Phase III - Load – Class loader placed the. class file 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
Software Development Method with Classes 1. Specify the problem 2. Analyze the problem 3. Design the classes to solve the problem by: a. Locating relevant classes in existing libraries b. Modifying existing classes where necessary c. Designing new classes where necessary 4. Implement the new and modified classes 5. Test and verify the completed program 6. Maintain and update the program
Algorithm A sequence of precise instructions which leads to a solution Algorithm that determines how much milk one cow produces each year 1 Determine how much milk one cow produces each day. 2 Multiply the volume of milk per day time 365 to learn how much milk is produced in one year. 3 Display the answer to the user.
Time for Lab 1
- Slides: 11