Introduction to Java. Lecture 1 COP 3252 Summer May 16, 2017

Similar documents
Introduction to Java Programming

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

2 Introduction to Java. Introduction to Programming 1 1

1. Introduction. Java. Fall 2009 Instructor: Dr. Masoud Yaghini

An Introduction to Software Engineering. David Greenstein Monta Vista High School

Outline. Introduction to Java. What Is Java? History. Java 2 Platform. Java 2 Platform Standard Edition. Introduction Java 2 Platform

CSE 421 Course Overview and Introduction to Java

CHAPTER 1. Introduction to JAVA Programming

Introduction to Java Programming CPIT 202. WEWwwbvxnvbxmnhsgfkdjfcn

Java Programming Language Mr.Rungrote Phonkam

Java language. Part 1. Java fundamentals. Yevhen Berkunskyi, NUoS

Certified Core Java Developer VS-1036

Learning objectives. The Java Environment. Java timeline (cont d) Java timeline. Understand the basic features of Java

Assoc. Prof. Dr. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

C++ Spring Break Packet 11 The Java Programming Language

CS260 Intro to Java & Android 02.Java Technology

Advanced Object-Oriented Programming Introduction to OOP and Java

JAVA An overview for C++ programmers

Java Puzzle Ball Nick Ristuccia

History Introduction to Java Characteristics of Java Data types

JVM interprets the Java bytecode, controls how it interacts with the operating system and manages memory.

Lecture 1: Introduction to Java

Chapter 1 Introduction to Computers, Programs, and Java

Getting Started with Java. Atul Prakash

Programming Languages FILS Andrei Vasilateanu

MEAP Edition Manning Early Access Program Get Programming with Java Version 1

Object-Oriented Programming in Java

Introduction to JAVA Programming Language

Chapter 1 Introduction to Java

Notes of the course - Advanced Programming. Barbara Russo

25. DECUS Symposium THE Application Development Environment for OpenVMS

Lecture (01) Getting started. Dr. Ahmed ElShafee

Core JAVA Training Syllabus FEE: RS. 8000/-

USING THE OOSIML/JAVA. With a Terminal Window

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

CT 229. CT229 Lecture Notes. Labs. Tutorials. Lecture Notes. Programming II CT229. Objectives for CT229. IT Department NUI Galway

Introduction. Introduction to OOP with Java. Lecture 01: Introduction to OOP with Java - AKF Sep AbuKhleiF -

COT 3530: Data Structures. Giri Narasimhan. ECS 389; Phone: x3748

02/03/15. Compile, execute, debugging THE ECLIPSE PLATFORM. Blanks'distribu.on' Ques+ons'with'no'answer' 10" 9" 8" No."of"students"vs."no.

Introduction to OOP with Java. Instructor: AbuKhleif, Mohammad Noor Sep 2017

Index. Course Outline. Grading Policy. Lab Time Distribution. Important Instructions

Lecture 1: Overview of Java

Introduction to Java and OOP. Hendrik Speleers

How to Install (then Test) the NetBeans Bundle

Chapter 1 Introduction to Computers, Programs, and Java

Introduction to Java. Nihar Ranjan Roy.

Seminar report Java Submitted in partial fulfillment of the requirement for the award of degree Of CSE

What is a VM? Categories of Virtual Machines. Process Virtual Machine 11/17/2010

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

From High Level to Machine Code. Compilation Overview. Computer Programs

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview

Lecture 4: Introduction to Java and your Development Environment

CS5015 Object-oriented Software Development. Lecture: Overview of Java Platform. A. O Riordan, 2010 Most recent revision, 2014 updated for Java 8

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

Getting Started with Eclipse/Java

Java Programming. Manuel Oriol, March 22nd, 2007

Java Programming Manual Windows

Computational Applications in Nuclear Astrophysics using Java Java course Lecture 1

Programming with Java

Introduction to OOP Using Java Pearson Education, Inc. All rights reserved.

Tutorial 1 CSC 201. Java Programming Concepts عؾادئماظربجمةمبادؿكدامماجلاصا

Running Java Programs

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

Lesson 01 Introduction

MODULE 1 JAVA PLATFORMS. Identifying Java Technology Product Groups

The Java Technical Details. ICW Lecture 3 Tom Chothia

CHAPTER 1 Introduction to Computers and Java

Eng. Mohammed S. Abdualal

Chapter 1 Introduction to Computers, Programs, and Java

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

The Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people

Lecture 09. Ada to Software Engineering. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Introduction to Java

Objectives. Problem Solving. Introduction. An overview of object-oriented concepts. Programming and programming languages An introduction to Java

USING THE OOSIML/JAVA COMPILER. With the Command Window

Short Questions. Instructor: Created by: Visit: 2/2/2018 OOP with JAVA. Muhammad Naveed

II. Compiling and launching from Command-Line, IDE A simple JAVA program

Lecture 1 Introduction to Android. App Development for Mobile Devices. App Development for Mobile Devices. Announcement.

IQTIDAR ALI Lecturer IBMS Agriculture University Peshawar

History of Java. Java was originally developed by Sun Microsystems star:ng in This language was ini:ally called Oak Renamed Java in 1995

Java with Eclipse: Setup & Getting Started

COMP6700/2140 JDK Tools

Objectives. Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer?

JavaOS. David Burhans 2/3/2003 CS384 Dr. Taylor

Eng. Mohammed Alokshiya

Programming Principles 1 (CSC131) & 2 (CSC132) Software usage guide

page 1 Murach s Beginning Java 2 Table of Contents Murach s Beginning Java 2 (Includes Version 1.3 & 1.4) - 2 Introduction - 3

Chapter 1 Introduction to Computers, Programs, and Java

IT151: Introduction to Programming (java)

Programming. Syntax and Semantics

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

JDK 9/10/11 and Garbage Collection

Chapter 1. Introduction

Component Based Software Engineering

Networks Programming Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)

Life Without NetBeans

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

Slide 1 Java Programming 1 Lecture 2D Java Mechanics Duration: 00:01:06 Advance mode: Auto

Chapter 1 Introduction to Computers, Programs, and Java

Transcription:

Introduction to Java Lecture 1 COP 3252 Summer 2017 May 16, 2017

The Java Language Java is a programming language that evolved from C++ Both are object-oriented They both have much of the same syntax Began in the early 90 s, originally used for programming in intelligent consumer-electronic devices (internal chips, etc). Was originally named Oak by its creator, but changed when it was realized that there was already a language called Oak When the Web took off in the early 90s, Java gained popularity for use in adding dynamic content to web pages While applets surely helped Java gain quick popularity, they are by no means the most important use of the language

The Java Language Java is now used for a wide variety of purposes. Its large and rich set of pre-built packages makes it a very popular choice of software developers The Java language specification is owned and controlled by Sun Microsystems (An Oracle Company) API (Application Programmer Interface) documentation for standard libraries available on the Oracle website. Standard Development Kit, along with other development tools can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html Latest version is Java SE 8 Java Standard Edition 8.0

Compiling and Running a Java program Java code compiled to an intermediate level bytecode bytecode runs on an interpreter the Java Virtual Machine Each platform needs its own JVM, but the same bytecode (generally speaking) runs on any JVM on any platform (i.e. the compiled version is portable) Typically Slower runtime than languages like C++, since running on an interpreter (and due to other factors)

Basic Creation and Execution of a Java program 1 Create source code with a text editor, store to disk Source code is just a plain text file. In Java, we give the filename an extension of.java to identify it as a source code file 2 Compilation The compiler does syntax checking, translation to bytecode in files with the.class extension bytecode is a translation of the source code to an intermediate level of code 3 Execution of Java program The loader is part of the Java Virtual Machine It loads the bytecode into memory and executes the instructions via an interpreter for the given platform (Windows, Mac, Linux, etc)

Integrated Development Environments An Integrated Development Environment (IDE) is a software package that includes all necessary tools for creating a program. Java IDEs frequently use the Java Standard Development Kit (SDK) tools underneath, and provide a graphical interface through menus to access the underlying tools. Examples of Java IDEs IntelliJ NetBeans Eclipse

Some Important Java Tools javac - java compiler java - java interpreter jar - the java archive utility javadoc - utility for auto-generating Java documentation API pages JSP - Java Server Pages JRE - Java Runtime Environment J2SDK - Java 2 Standard Development Kit (sometimes JDK, Java Development Kit, for short) includes JRE

Some benefits of Java (over C++) IMHO Vast collection of packages available in the Standard Development Kit (SDK) Easy-to-use API descriptions in HTML format on the Sun web site Standard format for building API descriptions for classes Easier to build programs with graphic interfaces (GUI) latest packages for GUI (Swing classes) not platform specific compiled bytecode runs on multiple platforms In C++, one would commonly have to use the GUI libraries for each different platform Some syntax has been made simplified Java Runtime Environment (JRE) does some things for you Automatic garbage collection (for dynamically allocated objects) more dynamic run-time checking automatic dynamic binding and polymorphic behavior

Some benefits of C++ (over Java) IMHO Programmer has more control and power in C++ In C++, programmer responsible for the details Control over addresses with pointers More control over efficient execution time and resource allocation/deallocation C++ programs will typically run faster, because compiled to machine s native instruction set dynamic allocation doesn t have to be used for all objects programmer has more power to optimize what they want C++ still has some extra and versatile features (that Java doesn t), like operator overloading and multiple inheritance