Java Buzzwords.

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

1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore G54PRG Programming Lecture 1 Amadeo Ascó 3 Java Programming Language.
In Review JAVA C++ GUIs - Windows Webopedia.com.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
For more Lectures and Notes Visit
1 Programming Languages Translation  Lecture Objectives:  Be able to list and explain five features of the Java programming language.  Be able to explain.
1. 2 Chapter 1 Introduction to Computers, Programs, and Java.
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.
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.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
Your Interactive Guide to the Digital World Discovering Computers 2012.
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
CS 355 – Programming Languages
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
High thoughts must have high language. Aristophanes
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Java Beserkers Group 4. Start of Java Development began on June of 1991 by a group of computer scientist at the Sun Mircrosystems Company Development.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Computers,
CPCS  Problem Solving in Everyday Life  Types of Problems  Problem Solving with Computers  Difficulties with Problem Solving 0-3.
111 © 2002, Cisco Systems, Inc. All rights reserved.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to Programs,
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
Computer Programming 12 Mr. Jean March 19 th, 2013.
CS101 Introduction to Computing Lecture Programming Languages.
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.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Introduction to.
Introduction and Features of Java. What is java? Developed by Sun Microsystems (James Gosling) A general-purpose object-oriented language Based on C/C++
Robert Crawford, MBA West Middle School.  Explain how the binary system is used by computers.  Describe how software is written and translated  Summarize.
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.
CPS Today’s topics Algorithms Java Syntax and Grammars Upcoming More Java Reading Great Ideas, Chapter 2.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
We will talking about story of JAVA language. By Kristsada Songpartom.
Today’s topics Java Syntax and Grammars Sample Programs Upcoming More Java Reading Great Ideas, Chapter 2.
Java – in context Main Features From Sun Microsystems ‘White Paper’
การเขียนโปรแกรมภาษา จาวา Java Programming อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 1.
Introduction to Programming 1 1 2Introduction to Java.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction.
Introduction to JAVA Programming
Lesson 2: First Java Programs. 2.1 Why Java? Java is one of the most popular programming languages in the world. Java is a modern object-oriented programming.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. INTRODUCING.
JAVA PROGRAMMING Buzzwords. Simple: Less complex syntax than C++ Not as easy to design as Visual Basic Small size of interpreter.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
CIS 234: Object-Oriented Programming with Java
Object Oriented Programming in
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
Chapter 1 Introduction to Computers, Programs, and Java
Lecture 1: Introduction to JAVA
Text by: Lambert and Osborne
Trees.
Java programming lecture one
Introduction Enosis Learning.
Introduction Enosis Learning.
Java History, Editions, Version Features
Introducing Java.
Outcome of the Lecture Upon completion of this lecture you will be able to understand Fundamentals and Characteristics of Java Language Basic Terminology.
Presentation transcript:

Java Buzzwords

Java! Java is a language characterized by buzzwords buzzword: A trendy word or phrase that is used more to impress than explain From Sun Microsystems, the developers of Java: What do all of those terms mean? “Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.”

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” A programming language a vocabulary and set of syntactical (grammatical) rules for instructing a computer to perform specific tasks you can do most anything in any programming language a particular language encourages one to do things in a certain way Question: Is this a fair characterization?

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Based on popular languages called C and C++ C: old, pretty bare bones language C++: newer, more complicated language Start from C and add some of C++’s more useful features “Java omits many rarely used, poorly understood, confusing features of C++ that in our experience bring more grief than benefits” (Gosling) Question: Is Java really all that simple?

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” The object-oriented paradigm problems and their solutions are packaged in terms of classes the information in a class is the data the functionality in a class is the method a class provides the framework for building objects Object-oriented programming (OOP) allows pieces of programs to be used in other contexts more easily

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” A distributed system is one where multiple separate computer systems are involved the Internet is a very large distributed system interconnected collection of computer networks heterogeneous components large number of services: WWW, file services, audio/video channels Java was designed for the web

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Java a high-level language High-level languages must be translated to a computer’s native tongue, machine language Interpreted high-level languages are translated to an intermediate form and then converted to machine language and run Java bytecodes bytecode (class) file is executed by a Java bytecode interpreter

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Programs will have errors, but a good program degrades reasonably A robust program may not do exactly what it is supposed to do, but it should not bring down other unrelated programs down with it Reliability early (compile time) checking dynamic (runtime) checking eliminating situations that are error prone.

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Security techniques that ensure that data stored on a computer cannot be read or compromised Java is intended for use in networked/distributed environments a program is running on your computer … what is to stop it from erasing all of your data, accidentally or otherwise? Java enables the construction of virus-free, tamper-free systems authentication based on public-key encryption

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” A language is architecture-neutral if it does not prefer a particular type of computer architectures Example: not too hard to construct a program that will run faster on a Macintosh than on a PC, and vice-versa each have their own respective strengths and weaknesses A particular program is never entirely architecture neutral though Question: When is being architecturally neutral a bad thing?

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Program once, run anywhere A program is portable if it will work the same (more or less) on many different computer systems platform-independent Much effort is currently spent porting non-portable code Java has no "implementation dependent" aspects HTML is also portable or platform-independent

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Performance: speed in completing some task performance is everything to most computer and software manufacturers! Think about this … if the transportation industry kept up with the computer industry, one would be able to now buy a Rolls Royce that could drive across country in 5 minutes for $35 However … it would crash once a week, killing everyone on board

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” A thread is a part of the program that can operate independently of its other parts Multi-threaded programs can do multiple things at once example: download a file from the web while still looking at other web pages Question: What is the problem with multiple agents working at the same time? synchronization

“Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable, high performance, multi-threaded, and dynamic language.” Dynamic: actions that take place at the moment they are needed rather than in advance antonym: static A dynamic program can ask for more or less resources as it runs use the most recent version of some code that is available Question: Why is being dynamic a good thing? upgrades

Decision Trees

Trees Hierarchical data structure Set of elements or nodes one node as root every other node has a single predecessor (parent) and zero or more successors (children) nodes without successors are called leaf nodes Nodes are connected by edges The level or depth of a node is the number of edges on the path to the root The depth of the tree is the number of edges on the longest path from root to any leaf A complete tree has all leaves at same level, all other nodes have the same number of children

Example tree structure root   leaf depth of tree = 3  edge  leaf  leaf  leaf  leaf  leaf

Decision trees A decision tree begins with a decision you need to make start with an initial decision node ask a question Structure for investigating options and the possible outcomes of choosing those options result of a decision can be another decision outcome is a terminal node Tree should have unique paths from the decision node to each of the terminal nodes. help you to choose between several courses of action

Examples Real life decision trees which route to take to class? which {cell phone, computer, camera} is best for me? what to wear? where to go on vacation?

A Decision Tree yes yes no yes no no He received the Physics Prize in 1921. Try the Medicine Prize in 1962. yes Would you like to read about Einstein? yes no Would you like to read about a scientist? Try A. Solzhenitsyn, Literature 1970. Look up the Peace Prize in 1991. yes no Would you prefer a humanitarian? no

A decision tree for sorting a  b? yes no b  c? a  c? yes no a  b  c a  c? a  c  b c  a  b yes no b  a  c b  c? yes no b  c  a c  b  a

Binary trees Nodes have at most two children In a complete binary tree of depth 3, how many nodes are in the tree? how many leaves are in the tree? In a complete binary tree of depth 4, How many nodes in a depth d tree? How many leaves in a depth d tree?