1 Sections 2.1 - 3 Java Virtual Machine and Byte Code Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Programming Basic Concepts © Juhani Välimäki 2003.
Chapter 2 First Java Programs
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Chapter 1 Introduction to JAVA. Why Learn JAVA? Java is one of the fastest growing programming language in the world. Java is one of the fastest growing.
Java.  Java is an object-oriented programming language.  Java is important to us because Android programming uses Java.  However, Java is much more.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
1/28/2004CSCI 315 Operating Systems Design1 Operating System Structures & Processes Notice: The slides for this lecture have been largely based on those.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
For more Lectures and Notes Visit
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Chapter 2 First Java Programs
Sadegh Aliakbary Sharif University of Technology Fall 2011.
1 CSC 551: Web Programming Spring 2004 Java Overview  Design goals & features  platform independence, portable, secure, simple, object-oriented, … 
Suma D Event Driven programming using java(CSE210) Overview of java Packages and interface Exception handling Multithreading Input/output.
Computer Programming 12 Mr. Jean March 3 rd, 2014.
1.1 History of Computers 1940s: The ENIAC was one of the world’s first computers. Large stand-alone machine Used large amounts of electricity Contained.
CSC 142 A 1 CSC 142 Introduction to Java [Reading: chapter 0]
Introduction to Java Programming with JBuilder 4
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
Lesson 2: First Java Programs
CSCI 224 Introduction to Java Programming. Course Objectives  Learn the Java programming language: Syntax, Idioms Patterns, Styles  Become comfortable.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Sadegh Aliakbary. Copyright ©2014 JAVACUP.IRJAVACUP.IR All rights reserved. Redistribution of JAVACUP contents is not prohibited if JAVACUP.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
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.
1 Chapter 2 First Java Programs Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Why Java? A brief introduction to Java and its features Prepared by Mithat Konar.
Computer Programming 12 Mr. Jean March 19 th, 2013.
Chapter 1 Introduction. Goal to learn about computers and programming to compile and run your first Java program to recognize compile-time and run-time.
Sadegh Aliakbary Sharif University of Technology Fall 2012.
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
Lesson 2: First Java Programs. Objectives: –Discuss why Java is an important programming language. –Explain the Java virtual machine and byte code. –Choose.
Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
What Is Java? According to Sun in a white paper: Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture-neutral, portable,
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.
CT1513 Introduction To java © A.AlOsaimi.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition Second Edition D.S. Malik D.S. Malik.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
Chapter 1: Introducing JAVA. 2 Introduction Why JAVA Applets and web applications Very rich GUI libraries Portability (machine independence) A real Object.
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
Introduction Mehdi Einali Advanced Programming in Java 1.
Software Development Introduction
Lesson 1 1 LESSON 1 l Background information l Introduction to Java Introduction and a Taste of Java.
Compilers and Interpreters
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Programming Languages Concepts Chapter 1: Programming Languages Concepts Lecture # 4.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Chapter 2 First Java Programs Fundamentals of Java.
Introduction to JAVA Programming
Java Programming, 3e Concepts and Techniques Chapter 1 Section 56 – An Introduction to Java.
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.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
1 Sections 3.3 – 3.4 Terminal I/O and Comments Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Sections Basic Concepts of Programming
The Java Programming Language
Text by: Lambert and Osborne
Chapter 2 First Java Programs
Lecture 1 Runtime environments.
Advanced Programming Fall 2017.
(Computer fundamental Lab)
CSC 142 Introduction to Java [Reading: chapters 1 & 2]
Lecture 1 Runtime environments.
Presentation transcript:

1 Sections Java Virtual Machine and Byte Code Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne

Chapter Why Java? Java is the fastest growing programming language in the world. – Sun, IBM use Java to develop applications. Java is a modern object-oriented programming language.

Chapter Why Java? (continued) Java is ideal for distributed, network-based applications. – Secure: Virus-free, tamper-free systems. – Robust: Supports development of programs that do not overwrite memory. – Portable: Yields programs that can be run on different computer types.

Chapter Why Java? (continued) Java supports advanced programming concepts. – Thread: A process that can run concurrently with other processes. Java resembles C++. – Easy for a C++ programmer to learn Java. Java does run more slowly than other languages because it is interpreted.

Chapter The Java Virtual Machine and Byte Code Java compilers translate Java into Java byte code. – Not machine language – Must install JVM (Java Virtual Machine). A JVM is an interpreter. – An interpreter is a program that runs like a computer. – An interpreter runs slower than a computer.

Chapter The Java Virtual Machine and Byte Code (continued) JVMs are getting faster. – Using JIT (just-in-time) compilations, which translate byte code into machine language. Any computer can run an interpreter. – Makes Java byte code portable. Java applets – Applets are small programs already translated into byte code that are built into Web sites. – Can be decorative or practical.

Chapter Choosing a User Interface Style Two user interfaces for a temperature conversion program Graphical user interface (GUI) Terminal I/O user interface

Chapter Choosing a User Interface Style (continued) Why use terminal I/O? – In Java, it’s easier to implement than GUI. – There are programming situations that require terminal I/O. – Terminal-oriented programs are similar in structure to programs that process files of sequentially organized data.

Chapter 1 9