logging in or signing up ch02 - An Introduction to Java mirfat Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 986 Category: Education License: All Rights Reserved Like it (3) Dislike it (0) Added: June 30, 2010 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript Outline : 1 Outline Java’s past, present and future What is Java The program types of Java Development tools The first Java program Summary Java’s Past, Present and Future : Java’s Past, Present and Future Computer Organization : 3 Computer Organization Input unit Mouse, keyboard Output unit Monitor, printer, audio speakers Memory unit RAM Arithmetic and logic unit (ALU) Performs calculations Central processing unit (CPU) Supervises operation of other devices Secondary memory unit Hard drives, floppy drives Programming languages : 4 Programming languages Machine language “Natural language” of computer component Machine dependent Assembly language English-like abbreviations represent computer operations Translator programs convert to machine language High-level language “English-like” instructions Compiler convert to machine language Some representative languages : 5 Some representative languages Structural programming language FORTRAN (IBM Mathematical FORmula TRANslation) BASIC (Beginner‘s All Purpose Symbolic Instruction Code) COBOL (Common Business Oriented Language) PASCAL C Object-Oriented programming language C# (C Sharp) C++ Object Pascal Java SmallTalk Ada Who develops Java? : 6 Who develops Java? The Java language was developed at Sun Microsystems in 1991 as part of a research project to develop software for consumer electronics devices. Java’s creator : 7 Java’s creator Java is a programming language and environment whose original name was Oak and developed as a part of the Green project at Sun started by James Gosling. Java’s initial goal : 8 Java’s initial goal Java’s goals at that time were to be small, fast, efficient, and easily portable to a wide range of hardware devices. It is those same goals that made Java an ideal language for distributing executable programs via the World Wide Web. “Write once, run anywhere!” Java’s future : 9 Java’s future Enterprise information system Mobile application Distributed computing Web services Grid Brief summary : 10 Brief summary Computer organization Programming language Java’s developer Java’s creator Java’s initial goal What is Java : What is Java A graceful O-O language : 12 A graceful O-O language Java is an object-oriented programming language developed by Sun Microsystems ,you can use java to develop and work with pictures, texts, colours and graphics. Small, simple and portable : 13 Small, simple and portable Java was designed to be small, simple, and portable across platforms and operating systems at the source level at the binary level Full-fledged language : 14 Full-fledged language Java was written as a full-fledged programming language in which you can accomplish the same sorts of tasks and solve the same sorts of problems that you can in other programming languages, such as C or C++. simpler than C++ similar with C or C++ Brief summary : 15 Brief summary Java is a graceful O-O language Java is small, simple and portable Java is a full-fledged language Why Learn Java? : Why Learn Java? Platform-independent : 17 Platform-independent Object-Oriented : 18 Object-Oriented Take full advantage of O-O methodlogy Create flexible, modular and reusable code Includes powerful class libraries written in Java Easy to learn : 19 Easy to learn Java is more powerful than C Java is easier than C++ One of Java’s goal is small and simple Easy to write, easy to compile, easy to debug Easy to learn Brief summary : 20 Brief summary Platform-independent Object-Oriented Easy to learn The Types of Java Programs : The Types of Java Programs Java Application : 22 Java Application Run on local computer Based on J2SE Java Applet : 23 Java Applet Run on web browser Java Servlet : 24 Java Servlet Run on application server JavaBeans : 25 JavaBeans Cannot run independently Enterprise JavaBeans : 26 Enterprise JavaBeans Run on application server Based on J2EE Development Tools : Development Tools JBuilder : 28 JBuilder JDeveloper : 29 JDeveloper Visual Age for Java : 30 Visual Age for Java BEA WebLogic Workshop : 31 BEA WebLogic Workshop Eclipse : 32 Eclipse Eclipse Platform http://www.eclipse.org/platform Developed by the Apache Software Foundation Netbeans : 33 Netbeans JCreator : 34 JCreator IntelliJ : 35 IntelliJ Textpad & Notepad : 36 Textpad & Notepad The simplest tool: JDK + text editor Java communities : 37 Java communities Java Home : 38 Java Home http://java.sun.com http://www.java.com Java supported companies : 39 Java supported companies Target version and tools : 40 Target version and tools Target JDK version of this class JDK1.6.0 Recommended development tools Netbeans 6.0 - provided by SUN Eclipse Platform 3.0.1 - provided by Apache How to get the software? : 41 How to get the software? http://java.sun.com http://www.eclipse.org Brief Summary : 42 Brief Summary Development tools Target version Recommended tools Where can we get it The First Java Program : The First Java Program Hello World! : 44 Hello World! File : 45 File HelloWorld.java not helloworld.java, helloWorld.java… Package : 46 Package “package lesson1;” package package name = directory name Class : 47 Class “public class HelloWorld { … }” public class bracket public class name = file name One .java file can includes more than one class, but only one public class can be defined in it. Comment : 48 Comment Method : 49 Method “public static void main( String[] args ) {…}” public static void String[] args bracket Print screen : 50 Print screen “System.out.println( … );” print println String : 51 String “Hello World!” Compile : 52 Compile javac HelloWorld.java Run : 53 Run java HelloWorld Basic tools : 54 Basic tools Run HelloWorld : 55 Run HelloWorld javac HelloWorld.java java HelloWorld Output: Hello World! Use NetBeans to run HelloWorld : 56 Use NetBeans to run HelloWorld Brief summary : 57 Brief summary Write the first Java program Run the first Java program Get the usage of JDK Thanks! : Thanks! You do not have the permission to view this presentation. In order to view it, please contact the author of the presentation.
ch02 - An Introduction to Java mirfat Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 986 Category: Education License: All Rights Reserved Like it (3) Dislike it (0) Added: June 30, 2010 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript Outline : 1 Outline Java’s past, present and future What is Java The program types of Java Development tools The first Java program Summary Java’s Past, Present and Future : Java’s Past, Present and Future Computer Organization : 3 Computer Organization Input unit Mouse, keyboard Output unit Monitor, printer, audio speakers Memory unit RAM Arithmetic and logic unit (ALU) Performs calculations Central processing unit (CPU) Supervises operation of other devices Secondary memory unit Hard drives, floppy drives Programming languages : 4 Programming languages Machine language “Natural language” of computer component Machine dependent Assembly language English-like abbreviations represent computer operations Translator programs convert to machine language High-level language “English-like” instructions Compiler convert to machine language Some representative languages : 5 Some representative languages Structural programming language FORTRAN (IBM Mathematical FORmula TRANslation) BASIC (Beginner‘s All Purpose Symbolic Instruction Code) COBOL (Common Business Oriented Language) PASCAL C Object-Oriented programming language C# (C Sharp) C++ Object Pascal Java SmallTalk Ada Who develops Java? : 6 Who develops Java? The Java language was developed at Sun Microsystems in 1991 as part of a research project to develop software for consumer electronics devices. Java’s creator : 7 Java’s creator Java is a programming language and environment whose original name was Oak and developed as a part of the Green project at Sun started by James Gosling. Java’s initial goal : 8 Java’s initial goal Java’s goals at that time were to be small, fast, efficient, and easily portable to a wide range of hardware devices. It is those same goals that made Java an ideal language for distributing executable programs via the World Wide Web. “Write once, run anywhere!” Java’s future : 9 Java’s future Enterprise information system Mobile application Distributed computing Web services Grid Brief summary : 10 Brief summary Computer organization Programming language Java’s developer Java’s creator Java’s initial goal What is Java : What is Java A graceful O-O language : 12 A graceful O-O language Java is an object-oriented programming language developed by Sun Microsystems ,you can use java to develop and work with pictures, texts, colours and graphics. Small, simple and portable : 13 Small, simple and portable Java was designed to be small, simple, and portable across platforms and operating systems at the source level at the binary level Full-fledged language : 14 Full-fledged language Java was written as a full-fledged programming language in which you can accomplish the same sorts of tasks and solve the same sorts of problems that you can in other programming languages, such as C or C++. simpler than C++ similar with C or C++ Brief summary : 15 Brief summary Java is a graceful O-O language Java is small, simple and portable Java is a full-fledged language Why Learn Java? : Why Learn Java? Platform-independent : 17 Platform-independent Object-Oriented : 18 Object-Oriented Take full advantage of O-O methodlogy Create flexible, modular and reusable code Includes powerful class libraries written in Java Easy to learn : 19 Easy to learn Java is more powerful than C Java is easier than C++ One of Java’s goal is small and simple Easy to write, easy to compile, easy to debug Easy to learn Brief summary : 20 Brief summary Platform-independent Object-Oriented Easy to learn The Types of Java Programs : The Types of Java Programs Java Application : 22 Java Application Run on local computer Based on J2SE Java Applet : 23 Java Applet Run on web browser Java Servlet : 24 Java Servlet Run on application server JavaBeans : 25 JavaBeans Cannot run independently Enterprise JavaBeans : 26 Enterprise JavaBeans Run on application server Based on J2EE Development Tools : Development Tools JBuilder : 28 JBuilder JDeveloper : 29 JDeveloper Visual Age for Java : 30 Visual Age for Java BEA WebLogic Workshop : 31 BEA WebLogic Workshop Eclipse : 32 Eclipse Eclipse Platform http://www.eclipse.org/platform Developed by the Apache Software Foundation Netbeans : 33 Netbeans JCreator : 34 JCreator IntelliJ : 35 IntelliJ Textpad & Notepad : 36 Textpad & Notepad The simplest tool: JDK + text editor Java communities : 37 Java communities Java Home : 38 Java Home http://java.sun.com http://www.java.com Java supported companies : 39 Java supported companies Target version and tools : 40 Target version and tools Target JDK version of this class JDK1.6.0 Recommended development tools Netbeans 6.0 - provided by SUN Eclipse Platform 3.0.1 - provided by Apache How to get the software? : 41 How to get the software? http://java.sun.com http://www.eclipse.org Brief Summary : 42 Brief Summary Development tools Target version Recommended tools Where can we get it The First Java Program : The First Java Program Hello World! : 44 Hello World! File : 45 File HelloWorld.java not helloworld.java, helloWorld.java… Package : 46 Package “package lesson1;” package package name = directory name Class : 47 Class “public class HelloWorld { … }” public class bracket public class name = file name One .java file can includes more than one class, but only one public class can be defined in it. Comment : 48 Comment Method : 49 Method “public static void main( String[] args ) {…}” public static void String[] args bracket Print screen : 50 Print screen “System.out.println( … );” print println String : 51 String “Hello World!” Compile : 52 Compile javac HelloWorld.java Run : 53 Run java HelloWorld Basic tools : 54 Basic tools Run HelloWorld : 55 Run HelloWorld javac HelloWorld.java java HelloWorld Output: Hello World! Use NetBeans to run HelloWorld : 56 Use NetBeans to run HelloWorld Brief summary : 57 Brief summary Write the first Java program Run the first Java program Get the usage of JDK Thanks! : Thanks!