Download presentation
Presentation is loading. Please wait.
Published byMartin Bryan Modified over 9 years ago
1
Programming Language Object Oriented Programming JAVA – An Introduction JAVA Milestones JAVA Features
2
What is Program: A program is like a recipe. It contains a list of ingredients (called variables) and a list of directions (called statements) that tell the computer what to do with the variables. The variables can represent numeric data, text, or graphical images. Types of Languages: Machine Language: “ Natural Language” of computer component. Machine dependent. Assembly Language: English – like Abbreviations represent computer operations. Translator program (assemblers) convert to machine language. High-level language: Allows for writing more “English-like” instructions Contains commonly used mathematical operations. Compiler / Interpreter converts to machine language. C, C++, JAVA, VB, PASCAL, FORTRAN, COBOL, PYTHON, C# etc.,
3
OOP treats data as a critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it and protect it from unintentional modification by other functions. OOP allows us to decompose a problem into a number of entities called objects. Some of features of Object Oriented Programming: Emphasis is on data rather than procedure or function. Programs are divided into what are know as objects. Data is hidden and cannot be accessed by external functions Objects may communicate with each other through methods.
4
Basic Concepts of Object Oriented Programming: Classes and Objects Data Abstraction and Encapsulation – The wrapping up of data and methods into a single unit is know as encapsulation. Abstraction refers to the act of representing essential features without including the background details or explanations. Inheritance – Inheritance is the process by which objects of one class acquire the properties of objects of another class. Polymorphism – Polymorphism means ability to take more than one form. Dynamic Binding – Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at runtime. Message communication – The concept of message passing makes it easier to talk about building systems that directly model or simulate their real world.
5
Java - The new programming language developed by Sun Microsystems in 1991. Originally called Oak by James Gosling, one of the inventors of the Java Language. Java Authors: James, Arthur Van, and others. Originally created for consumer electronics (TV, VCR, Freeze, Washing Machine, Mobile Phone). Java - CPU Independent language Internet and Web was just emerging, so Sun turned it into a language of Internet Programming. It allows you to publish a webpage with Java code in it.
6
YearDevelopment 1990Sun decided to developed special software that could be used for electronic devices. A project called Green Project created and head by James Gosling. 1991Explored possibility of using C++, with some updates announced a new language named “Oak” 1992The team demonstrated the application of their new language to control a list of home appliances using a hand held device. 1993The World Wide Web appeared on the Internet and transformed the text-based interface to a graphical rich environment. The team developed Web applets (time programs) that could run on all types of computers connected to the Internet.
7
YearDevelopment 1994The team developed a new Web browsed called “Hot Java” to locate and run Applets. Hot-Java gained instance success. 1995Oak was renamed to Java, as it did not survive “legal” registration. Many companies such as Netscape and Microsoft announced their support for Java 1996Java established itself it self as both 1. “the language for Internet programming” 2. a general purpose OO language. Sun released JDK 1.0 1997JDK 1.1 1998Sun released the Java 2 with version 1.2 of Software Development Kit (SDK 1.2) 19992 platforms were released J2SE, J2EE 2000 and 2002 SDK 1.3 and SDK 1.4 2004J2SE with JDK 5.0 was released. This is know as J2SE 5.0
8
Simple Object-Oriented Compiled and Interpreted Portable
9
Simple Object-Oriented Compiled and Interpreted Portable Java is partially modeled on C++, but greatly simplified and improved. Some people refer to Java as "C++--" because it is like C++ but with more functionality and fewer negative aspects.
10
Java is inherently object- oriented. One of the central issues in software development is how to reuse the code. Object-oriented programming provides great flexibility, clarity, and reusability through encapsulation, inheritance, and polymorphism. Simple Object-Oriented Compiled and Interpreted Portable
11
Simple Object-Oriented Compiled and Interpreted Portable Converts the source to the object code.
12
Simple Object-Oriented Compiled and Interpreted Portable Java programs are portable. They can be run on any platform without being recompiled.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.