Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute.

Slides:



Advertisements
Similar presentations
Chapter 16 Java Virtual Machine. To compile a java program in Simple.java, enter javac Simple.java javac outputs Simple.class, a file that contains bytecode.
Advertisements

Date: Subject:Distributed Data Processing Name:Maria Br ü ckner.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Introduction to JAVA Vijayan Sugumaran School of Business Administration Oakland University Rochester, MI
1 1 Lecture 14 Java Virtual Machine Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of Technology.
Lab Information Security Using Java (Review) Lab#0 Omaima Al-Matrafi.
Lab#1 (14/3/1431h) Introduction To java programming cs425
The Java Language. Topics of this Course  Introduction to Java  The Java Language  Object Oriented Programming in Java  Exceptions Handling  Threads.
Client Side Programming Using Java Applet Outcomes: You will be expected to know: – Java Applets and HTML file; –bytecode and platform independent programs;
Introduction to Java The objectives of this chapter are: To describe the key aspects of Java To describe the Java software development kit (SDK) To explain.
got ? Research Project – April 1998 Hang Xia, Mark Wang, Richard S. Chang Updated: R Norman, August 1999.
IC211 Object Oriented Programming Overview of Java.
Java: History and Introduction (Lecture # 1). History… Java – Based on C and C++ – Developed in 1991 for intelligent consumer electronic devices – Green.
Introduction to Java Kiyeol Ryu Java Programming Language.
JETT 2003 Java.compareTo(C++). JAVA Java Platform consists of 4 parts: –Java Language –Java API –Java class format –Java Virtual Machine.
Introduction to Java CS 331. Introduction Present the syntax of Java Introduce the Java API Demonstrate how to build –stand-alone Java programs –Java.
Memory Layout C and Data Structures Baojian Hua
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.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
Getting Started What is Java? A programming language –Fully buzzword-compliant: A simple, object oriented, distributed, interpreted, robust, secure,
Java Programming Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University
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.
Programming in Java; Instructor:Moorthy Introduction, Objects, Classes, Libraries1 Programming in Java Introduction.
JAVA v.s. C++ Programming Language Comparison By LI LU SAMMY CHU By LI LU SAMMY CHU.
BASIC JAVA PROGRAMMING TUTORIAL. History  James Gosling and Sun Microsystems  Oak  Java, May 20, 1995, Sun World  Hot Java –The first Java-enabled.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Applets & Servlets.
1 Course Lectures Available on line:
Java Lecture 16: Dolores Zage. WWW n Was a method for distributing passive information n added forms and image maps n interaction was only a new way to.
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
JAVA APPLETS By: Ms. Humaira Siddiqui. Java and the Internet Java is considered to be a language well suited to be used in the internet. In contrast with.
1 Module Objective & Outline Module Objective: After completing this Module, you will be able to, appreciate java as a programming language, write java.
1 Comp 104: Operating Systems Concepts Java Development and Run-Time Store Organisation.
University of Houston-Clear Lake Proprietary© 1997 Evolution of Programming Languages Basic cycle of improvement –Experience software difficulties –Theory.
Jaeki Song ISQS6337 JAVA Lecture 03 Introduction to Java -The First Java Application-
POS 406 Java Technology And Beginning Java Code
1 Programming Fundamentals AITI-GP. 2 Introduction to Programming.
Java for C++ Programmers Clint Jeffery University of Idaho
Introduction to Java Programming. Introduction Course Objectives Organization of the Book.
Java Programming Lecture 1 Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
Computer Programming 2 Why do we study Java….. Java is Simple It has none of the following: operator overloading, header files, pre- processor, pointer.
Java and its Evolution. Contents Java Introduction Java Features How Java Differs from other OO languages Java and the World Wide Web Java Environment.
Lecture 2 Software Concepts Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of Technology.
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.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Duke CPS From C++ to Java l Java history: Oak, toaster-ovens, internet language, panacea l What it is ä O-O language, not a hybrid (cf. C++)
Java Computer Industry Lab. 1 Programming Java Java Basics Incheon Paik.
1 Lecture 15 Remote Method Invocation Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of Technology.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 15: Java Basics Fundamentals of Web Programming.
RealTimeSystems Lab Jong-Koo, Lim
Object Oriented Programming Lecture 2: BallWorld.
Memory Management in Java Mr. Gerb Computer Science 4.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
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
Java™ 2 Platform Getting Started.
Chapter No. : 1 Introduction to Java.
Object-Oriented Programming with Java
Internet and Java Foundations, Programming and Practice
What is Java? A programming language Fully buzzword-compliant:
Introduction Enosis Learning.
Introduction Enosis Learning.
Memory Allocation CS 217.
From C++ to Java Java history: Oak, toaster-ovens, internet language, panacea What it is O-O language, not a hybrid (cf. C++) compiled to byte-code, executed.
Chap 1. Getting Started Objectives
Presentation transcript:

Java -- A very Hot Object- Oriented Language Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung Institute of Technology

Java -- A very Hot Object- Oriented Language Goals: Learning Java Programming & Understanding Java and Java Technology

自我介紹 幼稚園 : 彰化 縣 溪湖糖廠幼稚園 小學 : 基隆市成功國小 國中 : 高雄縣旗山國中 高中 : 台南一中 大學 : 台中市東海大學資訊科學 研究所 : 台北市大同工學院資訊工程 當兵 : 花蓮八零五醫院少尉資訊官 留學 : 美國紐約市哥倫比亞大學資訊科學

Outline Why Java is HOT? What is Java? What is New? (Java vs C++/C)

Why Java is HOT? Write Once, Run Anywhere model. Network-Centric Computing (internet programming) Interactive Content and Animation (multithreading) support APIs for both client & server applications Near guarantee that you can‘t run a bad program. WWW + Java gives the world a new way to think.

What is Java? Simple (compared to C++) Ture object-Orentied programming Distributed Robust Secure Archetectural Neutral Multithreaded

What is New? No global variables -- package.class.field No preprocessor -- import statement Unicode No pointers Garbage Collection Array and String are first class objects No goto statement Single Inheritance Java documentation generator Applet with Web browsers

What is New? Java documentation Rich Libraries: A. 2D, 3D programming model B. 2D animation API for video game C. API for time-critical audio, vidio and MIDI data D. Multithreading E. Networking F. Security G. Exception handling ….

What is New? C++/C Compilation, linking & loading: C++ Program C++ Program MAC PC Sun Compiler MAC Binary File PC Sun MAC PC Sun linker & Loader

What is New? Java Compilation, linking, loading & verifying & JVM: Java Program Java Program MAC PC Sun Compiler MAC PC Sun Interpreter JVM Java ByteCode Java ByteCode

How Java Works? Java Program Java Program Java Compiler Java Compiler Loader Verifier JVM Java ByteCode Java ByteCode Network or File System Network or File System HARDWAREHARDWARE

C/C++ Process Image Heap Text Stack Text: compiled program code (Functions or methods) Stack: local variables, parameters, return address Heap: dynamic allocation memory C: mallac and free C++: new and delete

Java Process Image Heap Text Stack Text: compiled program code (Functions or methods) Stack: primitives (char, byte, int, float, double, …) handles (addresses) of objects, parameters, return address Heap: dynamic allocation memory create: new delete: garbage collector

Java Programs Java standalone applications: Fully access your system resources (e.g. read/write files). Java applets: No read/write access Can not standalone, Need browsers (appletviewer, Netscape, IE).

Java Standalone Applications Public class HelloWeb { public static void main(String args[]) { System.out.println(“Hello Web!”); } Compilation: javac HelloWeb.java ==> HelloWeb.class Execution: java HelloWeb

Java Applets Public class HelloWebApplet extend java.applet.Applet { public void paint(java.awt.Graphs g) { g.drawString(“Hello Web!”, 125, 95); } HTML: Hello Web Applet Example

Conclusions Java is a pure OO programming language Cross-platform applications (Write Once Run Anywhere) WWW + Java gives the world a new way to think. 完成 Lecture 1 休息十分鐘!