Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
MC697 Object-Oriented Programming Using Java. In this class, we will cover: How the class will be structured Difference between object-oriented programming.
The road to reliable, autonomous distributed systems
What is a Programming Language? The computer operates using binary numbers. The computer only knows about 1’s and 0’s. Humans can also use 1’s and 0’s,
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
COMP201 Java Programming Topic 1: Introduction Readings: Chapter 1.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
For more Lectures and Notes Visit
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
Session-02. Objective In this session you will learn : What is Class Loader ? What is Byte Code Verifier? JIT & JAVA API Features of Java Java Environment.
Lecture 1: Overview of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++ Designed.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
01 Introduction to Java Technology. 2 Contents History of Java What is Java? Java Platforms Java Virtual Machine (JVM) Java Development Kit (JDK) Benefits.
LESSON 1 INTRODUCTION Compiled By: Edwin O. Okech [Tutor, Amoud University] JAVA PROGRAMMING.
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
Embedded Java Research Geoffrey Beers Peter Jantz December 18, 2001.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
EE2E1. JAVA Programming Introduction Dr. Mike Spann
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
About the Java  Java technology is both a programming language and a platform –The Java Programming Language A high-level language that can be characterized.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Programming Fundamentals 2: Background/ F II Objectives – –give a non-technical overview of Java Semester 2, Background.
Introduction to Programming Languages. Problem Solving in Programming.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
CS 3131 Introduction to Programming in Java Rich Maclin Computer Science Department.
Java Tutorial Ethan New York University.
Introduction to Object Oriented Programming CMSC 331.
Session 1 Introduction to Java. Objectives Java Simplified / Session 1 / 2 of 32 Explain the history of Java Explain Java in brief List the types of Java.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
Chapter 2: A Brief History Object- Oriented Programming Presentation slides for Object-Oriented Programming by Yahya Garout KFUPM Information & Computer.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Java: An Overview John R Durrett Texas Tech University.
Java JDBC API. A Java API To Access almost any kind of tabular data To Access almost any kind of tabular data Trademarked (not an acronym) Trademarked.
What is Java? Object Oriented Programming Language Sun Microsystems “Write Once, Run Everywhere” Bytecode and Virtual Machine Java Platform (Java VM and.
Introduction Mehdi Einali Advanced Programming in Java 1.
Java – in context Main Features From Sun Microsystems ‘White Paper’
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to JAVA Programming
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
1 Sections Java Virtual Machine and Byte Code Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Applications Active Web Documents Active Web Documents.
Object Oriented Programming in
Chapter 1 Introduction to Computers, Programs, and Java
Introduction Enosis Learning.
CMPE419 Mobile Application Development
Introduction Enosis Learning.
Java History, Editions, Version Features
F II 1. Background Objectives
CMPE419 Mobile Application Development
Presentation transcript:

Why Java? A brief introduction to Java and its features Prepared by Mithat Konar

Java is… A general purpose, high-level programming language with support for object-oriented programming. A collection of wide-ranging application programming interfaces (APIs). A self-contained runtime system. A complete set of development tools.

Java is not… An internet-only programming language. Difficult. JavaScript.

Java’s Main Features Uses virtual machine model to assure true “write once, run anywhere” programs. Built-in support for GUIs. Built-in networking. Built-in security features. Built-in support for multi-threaded programming. Self-documenting.

Java applications Applets Stand-alone programs Network servers Network clients Embedded designs Mobile telephones Portable Digital Assistants (PDAs) Set-top boxes Digital Signal Processing (DSP)

Java Virtual Machine The conventional compiled-code model source code compiler/ linker object code (native) object code Microprocessor system

Java Virtual Machine The virtual machine model source code compiler/ linker bytecode Microprocessor system Java Virtual Machine

Java Virtual Machine Advantages Compiled bytecode can run without modification on any platform that has a Java Virtual Machine. “Compile once, run anywhere”.

Java Virtual Machine Disadvantages Compiled bytecode runs a little slower than conventional compiled code. Advances in JVM technology are closing the gap. Not all low-level system manipulations are available through standard Java APIs. Low-level system manipulations are available in the form of native (non-Java) extensions.

Java Language Features Syntax is similar to C++. Full support for OOP Classes and objects Information hiding/access control Inheritance, method overriding Polymorphism Abstract methods and classes Interfaces

Java Language Features Everything that is not a primitive is an object. No pointers! Objects are accessed through reference variables. Built-in memory management and garbage collection.

Java API Features Support for the essentials Classes and objects I/O Threads Applet support Conventions used by applets

Java API Features Graphic User Interface (GUI) support Abstract Windowing Toolkit (AWT) Windows, dialogs, file dialogs Buttons, checkboxes Menus, menu bars Scrollbars etc. New generation GUI toolkit: Swing All the above, plus... Platform independent and run-time changeable look-and-feel. And more.

Java API Features Networking TCP/IP UDP URLs Internationalization Programs can automatically adapt to specific locales and be displayed in the appropriate language.

Java API Features Security Electronic signatures Public and private key management Access control Certificates Java Database Connectivity (JDBC TM ) Provides uniform access to a wide range of relational databases.

Java API Features The Java platform also has APIs for 2D and 3D graphics Accessibility Servers Collaboration Telephony Speech Animation and more.

Benefits of Programming in Java Get started quickly Although the Java programming language is a powerful object-oriented language, it's easy to learn, especially for programmers already familiar with C or C++. Write less code Comparisons of program metrics suggest that a program written in the Java programming language can be four times smaller than the same program in C++.

Benefits of Programming in Java Write better code The Java programming language encourages good coding practices. Garbage collection helps you avoid memory leaks. Its object orientation and wide-ranging, easily extendible API let you reuse other people's tested code and introduce fewer bugs.

Benefits of Programming in Java Develop programs faster Development time may be as much as twice as fast compared to writing the same program in C++ because you write fewer lines of code and it is a simpler programming language than C++.

Benefits of Programming in Java Avoid platform dependencies. You can keep your program portable by avoiding the use of libraries written in other languages and native methods. Write once, run anywhere. Because 100% pure Java programs are compiled into machine-independent bytecodes, they run consistently on any Java platform.

Benefits of Programming in Java Distribute software more easily. Upgrade applets easily from a central server. Applets take advantage of the feature of allowing new classes to be loaded "on the fly," without recompiling the entire program.